OneOS Docs
Genesis 0.3.3 Console

API reference

Foundry

Inference: models, chat completions, embeddings, keys, billing profile and request logs.

Operations
119
Base path
https://os.one.ml/api/v1/foundry
Scopes
admin foundry:gateway:invoke genesis.billing.read iam:read iam:write
API keys
43 refused to API keys · 70 tested with an API key
SDK
genesis.call('foundry_getActivity', …) · helpers under genesis.foundry
CLI
genesis foundry
MCP
104 tools; the other 15 through genesis_call

Operations

OperationEndpointAPI key
Get tenant activity aggregatesGET/activityTested with an API key
Export tenant activityGET/activity/exportAPI keys refused
Get supported analytics dimensions and metricsGET/analytics/metaTested with an API key
Query tenant analyticsPOST/analytics/queryTested with an API key
Annotate text (entities)POST/annotateAPI keys refused
Validate a speech generation requestPOST/audio/speechAPI keys refused
Validate an audio transcription requestPOST/audio/transcriptionsAPI keys refused
Get current API key metadataGET/auth/keyTested with an API key
Admit a JSONL batchPOST/batchesTested with an API key
Get batch stateGET/batches/{batch_id}Tested with an API key
Create the server-configured TEST credit checkoutPOST/billing/checkout/creditsAPI keys refused
Read the current organization’s paid-credit balanceGET/billing/credits/balanceAPI keys refused
Read the current organization’s native Sandbox billing profileGET/billing/profileAPI keys refused
Ensure the current organization’s TEST billing profilePOST/billing/profile/ensureAPI keys refused
Create a chat completionPOST/chat/completionsTested with an API key
Classify textPOST/classifyAPI keys refused
Make a typed decision (noul, choice, score) on a decision model or the measured decision classPOST/decisions—
Detect objects in an imagePOST/detectAPI keys refused
Embed textsPOST/embedTested with an API key
Create embeddingsPOST/embeddingsTested with an API key
List tenant filesGET/filesTested with an API key
Upload a tenant filePOST/filesTested with an API key
Get file metadataGET/files/{file_id}Tested with an API key
Delete a tenant fileDELETE/files/{file_id}Tested with an API key
List tenant fine-tuning jobsGET/fine_tuning/jobsTested with an API key
Create an admitted fine-tuning jobPOST/fine_tuning/jobsAPI keys refused
Get and refresh a fine-tuning jobGET/fine_tuning/jobs/{job_id}API keys refused
Delete a terminal provider fine-tuning jobDELETE/fine_tuning/jobs/{job_id}API keys refused
Cancel a provider fine-tuning job when contract-backedPOST/fine_tuning/jobs/{job_id}/cancelAPI keys refused
List provider fine-tuning checkpoints when contract-backedGET/fine_tuning/jobs/{job_id}/checkpointsAPI keys refused
List normalized fine-tuning eventsGET/fine_tuning/jobs/{job_id}/eventsAPI keys refused
List tenant private fine-tuned modelsGET/fine_tuning/modelsTested with an API key
Get a tenant private fine-tuned modelGET/fine_tuning/models/{model_id}API keys refused
List contract-backed fine-tuning provider operations and executable lanesGET/fine_tuning/providersTested with an API key
Forecast a time seriesPOST/forecastAPI keys refused
Generate images from a promptPOST/generate/imageAPI keys refused
Get generation metadata and receipt projectionGET/generationTested with an API key
Get retained generation contentGET/generation/contentAPI keys refused
Submit idempotent generation feedbackPOST/generation/feedbackTested with an API key
Get a generation receiptGET/generations/{receipt_id}Tested with an API key
Get a generation receipt by request IDGET/generations/by-request/{request_id}Tested with an API key
Validate an image generation requestPOST/imagesAPI keys refused
List image-capable modelsGET/images/modelsTested with an API key
Run Foundry universal inferencePOST/inferTested with an API key
Stream Foundry universal inferencePOST/infer/streamTested with an API key
List tenant API keysGET/keysAPI keys refused
Create a tenant API keyPOST/keysAPI keys refused
Delete a tenant API keyDELETE/keys/{key_id}API keys refused
Rotate a tenant API keyPOST/keys/{key_id}/rotateAPI keys refused
Create an Anthropic-compatible messagePOST/messagesTested with an API key
List executable modelsGET/modelsTested with an API key
Predict over tabular rowsPOST/predictAPI keys refused
List tenant provider credential policiesGET/provider-credential-policiesAPI keys refused
Set a tenant provider credential policyPUT/provider-credential-policies/{provider_id}API keys refused
Summarise your provider credentials and credential policiesGET/provider-credentials/summaryTested with an API key
List tenant BYOK provider keysGET/provider-keysAPI keys refused
Register a tenant BYOK provider keyPOST/provider-keysAPI keys refused
Delete a tenant provider keyDELETE/provider-keys/{provider_id}API keys refused
Enable or disable a tenant provider keyPATCH/provider-keys/{provider_id}API keys refused
List the current and retired receipt verification keysGET/receipts/verification-keysTested with an API key
Get the current receipt verification keyGET/receipts/verification-keys/currentTested with an API key
Recommend itemsPOST/recommendAPI keys refused
Compare registry model dossiersGET/registry/compareTested with an API key
List registry facetsGET/registry/facetsTested with an API key
List registry labsGET/registry/labsTested with an API key
Get a registry lab dossierGET/registry/labs/{lab_id}Tested with an API key
Get current model-base metadataGET/registry/model-base/currentTested with an API key
List model-base releasesGET/registry/model-base/releasesTested with an API key
List registry modelsGET/registry/modelsTested with an API key
Get a registry modelGET/registry/models/{canonical_model_id}Tested with an API key
List benchmark results for a modelGET/registry/models/{canonical_model_id}/benchmarksTested with an API key
Get a model dossierGET/registry/models/{canonical_model_id}/dossierTested with an API key
List model access offersGET/registry/models/{canonical_model_id}/offersTested with an API key
List the sources behind a model recordGET/registry/models/{canonical_model_id}/sourcesTested with an API key
List registry provenanceGET/registry/provenance—
List registry providersGET/registry/providersTested with an API key
Get a registry providerGET/registry/providers/{provider_id}Tested with an API key
Get a provider dossierGET/registry/providers/{provider_id}/dossierTested with an API key
List registry sourcesGET/registry/sources—
Read your organization's inference request logsGET/request-logsTested with an API key
Validate a rerank requestPOST/rerankAPI keys refused
Create an OpenAI Responses responsePOST/responsesTested with an API key
Build an eval run from per-item outcomesPOST/routing/evals/aggregateTested with an API key
Check whether an eval run supports a public claimPOST/routing/evals/claim-readinessTested with an API key
Build a dry-run routing eval planPOST/routing/evals/planTested with an API key
Aggregate outcomes for a planned suitePOST/routing/evals/plan/aggregateTested with an API key
Build a plan and runner-ready jobs (no provider execution)POST/routing/evals/plan/dispatchTested with an API key
Aggregate runner reports for a dispatched planPOST/routing/evals/plan/dispatch/aggregateTested with an API key
Explain a persisted routing invocationGET/routing/invocations/{id}/explainTested with an API key
Preview routing without provider executionPOST/routing/previewTested with an API key
Segment an imagePOST/segmentAPI keys refused
Synthesize speech from textPOST/speakAPI keys refused
Realtime speech socket (Eleven v4 Turbo)GET/speak/stream—
Stream speech as it is synthesized (Eleven v4 Turbo)POST/speak/stream—
Summarize textPOST/summarizeAPI keys refused
Benchmark models (estimates)POST/tools/benchmarkTested with an API key
Compare models for a prompt (estimates)POST/tools/compareTested with an API key
Estimate the cost of a callPOST/tools/cost-estimateTested with an API key
Transcribe audioPOST/transcribeAPI keys refused
Realtime transcription socket (Deepgram Nova-3)GET/transcribe/stream—
List snapshot-stable Registry V2 benchmark evidenceGET/v2/registry/benchmarksTested with an API key
Compare V2 registry model dossiersGET/v2/registry/compareTested with an API key
List V2 registry facetsGET/v2/registry/facetsTested with an API key
List V2 registry labsGET/v2/registry/labsTested with an API key
Get a V2 registry lab dossierGET/v2/registry/labs/{lab_id}Tested with an API key
Get current V2 model-base metadataGET/v2/registry/model-base/currentTested with an API key
List V2 model-base releasesGET/v2/registry/model-base/releasesTested with an API key
Get an unambiguous V2 model dossierGET/v2/registry/model-dossiers/{canonical_model_id}Tested with an API key
List Registry Intelligence V2 modelsGET/v2/registry/modelsTested with an API key
Get a Registry Intelligence V2 model dossierGET/v2/registry/models/{canonical_model_id}Tested with an API key
List V2 registry provenanceGET/v2/registry/provenanceTested with an API key
List Registry Intelligence V2 providersGET/v2/registry/providersTested with an API key
Get a V2 provider dossierGET/v2/registry/providers/{provider_id}Tested with an API key
List V2 registry sourcesGET/v2/registry/sourcesTested with an API key
Validate a video generation requestPOST/videosAPI keys refused
Validate a video job lookupGET/videos/{id}API keys refused
Validate a video content lookupGET/videos/{id}/contentAPI keys refused
Get a workload's statusGET/workloads/{workload_id}/statusAPI keys refused
Terminate a workloadPOST/workloads/{workload_id}/terminateAPI keys refused

Activity

Get tenant activity aggregates

GET/v1/foundry/activity

adminTested with an API keyfoundry_getActivity

Requires Foundry's admin (management) scope (openrouter_compatibility.rs authenticate_management). The gateway delegates only foundry:gateway:invoke, so it answers every caller 403 SCOPE_MISSING (required_scope admin) until Foundry grants tenant callers this family.

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/activity" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Export tenant activity

GET/v1/foundry/activity/export

adminAPI keys refusedfoundry_exportActivity

Requires Foundry's admin (management) scope (openrouter_compatibility.rs authenticate_management). The gateway delegates only foundry:gateway:invoke, so it answers every caller 403 SCOPE_MISSING (required_scope admin) until Foundry grants tenant callers this family.

Parameters

  • formatquery · stringrequired

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/activity/export?format=$FORMAT" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Analytics

Get supported analytics dimensions and metrics

GET/v1/foundry/analytics/meta

adminTested with an API keyfoundry_getAnalyticsMeta

Requires Foundry's admin (management) scope (openrouter_compatibility.rs authenticate_management). The gateway delegates only foundry:gateway:invoke, so it answers every caller 403 SCOPE_MISSING (required_scope admin) until Foundry grants tenant callers this family.

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/analytics/meta" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Query tenant analytics

POST/v1/foundry/analytics/query

adminTested with an API keyfoundry_queryAnalytics

Aggregate request-log analytics for your own organization (all projects and environments), served by Foundry's native reporting receiver (POST /v1/analytics/query). Read-only and not billed. The query body is bounded (64 KiB) and validated by Foundry, and the result is bound to the caller's organization. Works with a Console login session or an organization API key holding foundry:read; either way the gateway delegates a one-scope foundry:reporting:read child. gateway/src/foundry-reporting-read.ts.

Request body application/json

  • metricsstring[]required
  • dimensionsstring[]
  • filtersobject[]
  • granularity"minute" | "hour" | "day" | "month"
  • time_rangeobject

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/analytics/query" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "metrics": [
      "string"
    ]
  }'

Annotate

Annotate text (entities)

POST/v1/foundry/annotate

API keys refusedfoundry_annotateText

Dispatches a model and is billed from Stripe-funded prepaid Foundry credits only: for a Console (pf_console) or One app (pf_one) login the gateway delegates foundry:gateway:invoke:prepaid, and Foundry reserves and settles the call against the organization's prepaid credit ledger, refusing it when the credits do not cover it. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

  • modelstringrequired
  • textstringrequired

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/annotate" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "string",
    "text": "string"
  }'

Audio

Validate a speech generation request

POST/v1/foundry/audio/speech

foundry:gateway:invokeAPI keys refusedfoundry_createAudioSpeech

Request body application/json

  • modelstringrequired
  • promptstring
  • providerobject
  • provider.orderstring[]
  • provider.onlystring[]
  • provider.ignorestring[]
  • provider.allow_fallbacksboolean
  • provider.require_parametersboolean
  • provider.zdrboolean
  • provider.data_collection"allow" | "deny"
  • provider.sortany
  • provider.max_priceobject

Responses

  • 501The request is validated, but this modality transport is not executable.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/audio/speech" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "string"
  }'

Validate an audio transcription request

POST/v1/foundry/audio/transcriptions

foundry:gateway:invokeAPI keys refusedfoundry_createAudioTranscription

Request body application/json

  • modelstringrequired
  • promptstring
  • providerobject
  • provider.orderstring[]
  • provider.onlystring[]
  • provider.ignorestring[]
  • provider.allow_fallbacksboolean
  • provider.require_parametersboolean
  • provider.zdrboolean
  • provider.data_collection"allow" | "deny"
  • provider.sortany
  • provider.max_priceobject

Responses

  • 501The request is validated, but this modality transport is not executable.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/audio/transcriptions" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "string"
  }'

Auth

Get current API key metadata

GET/v1/foundry/auth/key

Tested with an API keyfoundry_getCurrentApiKey

Metadata of the Foundry credential the call carried: through the gateway, the delegated Foundry identity of your login (tenant, project, scopes). Not billed. Works with a Console login session (pf_console), for which the gateway delegates foundry:gateway:invoke. One app sign-ins (pf_one) are refused by Foundry: their prepaid child covers only billed inference. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/auth/key" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Batches

Admit a JSONL batch

POST/v1/foundry/batches

adminTested with an API keyfoundry_createBatch

Requires Foundry's admin (management) scope (openrouter_compatibility.rs authenticate_management). The gateway delegates only foundry:gateway:invoke, so it answers every caller 403 SCOPE_MISSING (required_scope admin) until Foundry grants tenant callers this family.

Request body application/json

  • input_file_idstringrequired
  • endpoint"/v1/chat/completions" | "/v1/responses"required
  • completion_window"24h"required
  • metadataobject

Responses

  • 200Successful response.
    Response fields
    • idstringrequired
    • statusstringrequired
    • endpointstring
    • input_file_idstring
    • output_file_idstring | null
    • request_countsobject
    • metadataobject
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/batches" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input_file_id": "string",
    "endpoint": "/v1/chat/completions",
    "completion_window": "24h"
  }'

Get batch state

GET/v1/foundry/batches/{batch_id}

adminTested with an API keyfoundry_getBatch

Requires Foundry's admin (management) scope (openrouter_compatibility.rs authenticate_management). The gateway delegates only foundry:gateway:invoke, so it answers every caller 403 SCOPE_MISSING (required_scope admin) until Foundry grants tenant callers this family.

Parameters

  • batch_idpath · stringrequired

Responses

  • 200Successful response.
    Response fields
    • idstringrequired
    • statusstringrequired
    • endpointstring
    • input_file_idstring
    • output_file_idstring | null
    • request_countsobject
    • metadataobject
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/batches/$BATCH_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Billing

Create the server-configured TEST credit checkout

POST/v1/foundry/billing/checkout/credits

API keys refusedIdempotency-Key requiredAuthorized by the servicefoundry_createNativeCreditCheckout

Original Console human only. The verified organization and Sandbox context are resolved server-side. Preserve the same operation key after an unknown POST; reconcile before retrying.

Parameters

  • Idempotency-Keyheader · stringrequired

    Persisted per-operation key; never create a replacement for an unknown result.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Native billing response
    Response fields
    • intent_idstringrequired
    • stripe_checkout_session_idstringrequired
    • checkout_urlstring (uri)
    • status"paid" | "processing"
    • stripe_payment_intent_idstring
  • 400Billing refusal; error.outcome says whether the operation was dispatched.
  • 503Billing refusal; error.outcome says whether the operation was dispatched.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/billing/checkout/credits" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Read the current organization’s paid-credit balance

GET/v1/foundry/billing/credits/balance

genesis.billing.readAPI keys refusedfoundry_readNativeCreditBalance

Read-only. A signed-in Console session, or an org API key holding genesis.billing.read (a key without it gets 403 SCOPE_MISSING with required_scope genesis.billing.read). The organization and environment come from the verified selection, never from the request: a Sandbox selection reads the organization's own Sandbox ledger (foundry_account_id is the organization); where Foundry Live is on for the organization, a Live key reads the {org}:live account, otherwise a Live selection is refused.

Responses

  • 200Native billing response
    Response fields
    • foundry_account_idstringrequired
    • available_microdollarsintegerrequired

      min 0 · max 9007199254740991

    • granted_microdollarsintegerrequired

      min 0 · max 9007199254740991

    • reserved_microdollarsintegerrequired

      min 0 · max 9007199254740991

    • reserved_overage_microdollarsintegerrequired

      min 0 · max 9007199254740991

    • settlement_owner"foundry"required
    • launch_listedbooleanrequired

      Legacy disposable-sandbox metadata; false does not deny a native customer.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/billing/credits/balance" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Read the current organization’s native Sandbox billing profile

GET/v1/foundry/billing/profile

genesis.billing.readAPI keys refusedfoundry_readBillingProfile

Read-only. A signed-in Console session, or an org API key holding genesis.billing.read (a key without it gets 403 SCOPE_MISSING with required_scope genesis.billing.read). The organization and environment come from the verified selection, never from the request. Returns the actual profile and fresh canEnsure decision; it creates no customer or payment. A key's profile never carries a Stripe account or customer id (Live returns both as null) and always reports canEnsure false (ensure and checkout need the person's own Console login). Where Foundry Live is on for the organization, a Live key reads the {org}:live account (status internal_allowance); otherwise a Live selection is refused.

Responses

  • 200Current organization billing profile
    Response fields
    • schemaVersion1required
    • status"ready" | "pending" | "attention_required"required
    • organizationIdstringrequired
    • billingAccountIdstringrequired
    • environmentId"sandbox"required
    • stripeAccountIdstring

      Present for a human Console session only; never returned to an org API key.

    • stripeCustomerIdstring | null

      Present for a human Console session only; never returned to an org API key.

    • livemodefalserequired
    • canEnsurebooleanrequired
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/billing/profile" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Ensure the current organization’s TEST billing profile

POST/v1/foundry/billing/profile/ensure

API keys refusedIdempotency-Key requiredAuthorized by the servicefoundry_ensureBillingProfile

Original Console human only. The verified organization and Sandbox context are resolved server-side. Preserve the same operation key after an unknown POST; reconcile before retrying.

Parameters

  • Idempotency-Keyheader · stringrequired

    Persisted per-operation key; never create a replacement for an unknown result.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Native billing response
    Response fields
    • schemaVersion1required
    • status"ready" | "pending" | "attention_required"required
    • organizationIdstringrequired
    • billingAccountIdstringrequired
    • environmentId"sandbox"required
    • stripeAccountIdstring

      Present for a human Console session only; never returned to an org API key.

    • stripeCustomerIdstring | null

      Present for a human Console session only; never returned to an org API key.

    • livemodefalserequired
    • canEnsurebooleanrequired
  • 400Billing refusal; error.outcome says whether the operation was dispatched.
  • 503Billing refusal; error.outcome says whether the operation was dispatched.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/billing/profile/ensure" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Chat

Create a chat completion

POST/v1/foundry/chat/completions

foundry:gateway:invokeTested with an API keyfoundry_createChatCompletion

Request body application/json

  • modelstring
  • modelsstring[]
  • messagesobject[]required
  • messages[].[].rolestringrequired
  • messages[].[].contentanyrequired
  • streamboolean
  • providerobject
  • provider.orderstring[]
  • provider.onlystring[]
  • provider.ignorestring[]
  • provider.allow_fallbacksboolean
  • provider.require_parametersboolean
  • provider.zdrboolean
  • provider.data_collection"allow" | "deny"
  • provider.sortany
  • provider.max_priceobject

Responses

  • 200Successful response.
    Response fields
    • idstringrequired
    • modelstring
    • choicesobject[]required
    • usageobject
    • usage.prompt_tokensinteger

      min 0

    • usage.completion_tokensinteger

      min 0

    • usage.total_tokensinteger

      min 0

    • usage.costnumber

      min 0

    • foundryobject
    • foundry.request_idstring
    • foundry.receipt_idstring
    • foundry.billing_lane"pay_as_you_go" | "subscription_entitled" | "byok"
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/chat/completions" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "messages": []
  }'

Classify

Classify text

POST/v1/foundry/classify

API keys refusedfoundry_classifyText

Dispatches a model and is billed from Stripe-funded prepaid Foundry credits only: for a Console (pf_console) or One app (pf_one) login the gateway delegates foundry:gateway:invoke:prepaid, and Foundry reserves and settles the call against the organization's prepaid credit ledger, refusing it when the credits do not cover it. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

  • modelstringrequired
  • textstringrequired

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/classify" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "string",
    "text": "string"
  }'

Decisions

Make a typed decision (noul, choice, score) on a decision model or the measured decision class

POST/v1/foundry/decisions

foundry_createDecision

Request body application/json

  • modelstring

    max length 128

  • route_class"decision"
  • stateanyrequired

    What the decision is about: a string, object or array.

  • data_policy"zdr" | "standard"

    Chat decision models only. zdr (the default): zero-retention, non-collecting routes only and no routing training. standard: the chat route's own policy; routing training still needs the caller's X-Foundry-Training subject. Pinned models always run zero-retention (standard is refused).

  • questionsobjectrequired

Responses

  • 200Successful response.
    Response fields
    • idstringrequired
    • object"decision"required
    • modelstringrequired
    • answersobjectrequired
    • usageobjectrequired
    • usage.input_tokensinteger
    • usage.output_tokensinteger
    • foundryobject
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/decisions" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "state": "string",
    "questions": {}
  }'

Detect

Detect objects in an image

POST/v1/foundry/detect

API keys refusedfoundry_detectObjects

Dispatches a model and is billed from Stripe-funded prepaid Foundry credits only: for a Console (pf_console) or One app (pf_one) login the gateway delegates foundry:gateway:invoke:prepaid, and Foundry reserves and settles the call against the organization's prepaid credit ledger, refusing it when the credits do not cover it. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

  • modelstringrequired
  • imageobject | objectrequired

    {"url": ...} or {"data": base64, "media_type": ...} (convenience.rs ImageInput)

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/detect" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "string",
    "image": {
      "url": "string"
    }
  }'

Embed

Embed texts

POST/v1/foundry/embed

Tested with an API keyfoundry_embedTexts

Dispatches a model and is billed from Stripe-funded prepaid Foundry credits only: for a Console (pf_console) or One app (pf_one) login the gateway delegates foundry:gateway:invoke:prepaid, and Foundry reserves and settles the call against the organization's prepaid credit ledger, refusing it when the credits do not cover it. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

  • modelstringrequired
  • inputstring[]required

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/embed" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "string",
    "input": []
  }'

Embeddings

Create embeddings

POST/v1/foundry/embeddings

foundry:gateway:invokeTested with an API keyfoundry_createEmbedding

Request body application/json

  • modelstringrequired
  • inputanyrequired
  • dimensionsinteger

    min 1

Responses

  • 200Successful response.
    Response fields
    • objectstring
    • modelstring
    • dataobject[]required
    • usageobject
    • usage.prompt_tokensinteger

      min 0

    • usage.completion_tokensinteger

      min 0

    • usage.total_tokensinteger

      min 0

    • usage.costnumber

      min 0

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/embeddings" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "string",
    "input": "string"
  }'

Files

List tenant files

GET/v1/foundry/files

adminTested with an API keyfoundry_listFiles

Responses

  • 200Successful response.
    Response fields
    • dataobject[]required
    • data[].[].idstringrequired
    • data[].[].type"file"required
    • data[].[].filenamestringrequired
    • data[].[].mime_typestringrequired
    • data[].[].size_bytesintegerrequired

      min 0

    • data[].[].downloadablebooleanrequired
    • data[].[].created_atanyrequired
    • has_moreboolean
    • cursorstring | null
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/files" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Upload a tenant file

POST/v1/foundry/files

adminTested with an API keyfoundry_uploadFile

Request bodies sent through https://os.one.ml/api are limited to 2 MiB.

Request body multipart/form-data

  • filestring (binary)required

Responses

  • 200Successful response.
    Response fields
    • idstringrequired
    • type"file"required
    • filenamestringrequired
    • mime_typestringrequired
    • size_bytesintegerrequired

      min 0

    • downloadablebooleanrequired
    • created_atanyrequired
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/files" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: multipart/form-data" \
  --data-binary @body.bin

Get file metadata

GET/v1/foundry/files/{file_id}

adminTested with an API keyfoundry_getFile

Parameters

  • file_idpath · stringrequired

Responses

  • 200Successful response.
    Response fields
    • idstringrequired
    • type"file"required
    • filenamestringrequired
    • mime_typestringrequired
    • size_bytesintegerrequired

      min 0

    • downloadablebooleanrequired
    • created_atanyrequired
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/files/$FILE_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Delete a tenant file

DELETE/v1/foundry/files/{file_id}

adminTested with an API keyfoundry_deleteFile

Parameters

  • file_idpath · stringrequired

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/foundry/files/$FILE_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Fine tuning

List tenant fine-tuning jobs

GET/v1/foundry/fine_tuning/jobs

adminTested with an API keyfoundry_listFineTuningJobs

Responses

  • 200Successful response.
    Response fields
    • dataobject[]required
    • data[].[].idstringrequired
    • data[].[].object"fine_tuning.job"required
    • data[].[].providerstringrequired
    • data[].[].provider_job_idstring | null
    • data[].[].modelstringrequired
    • data[].[].fine_tuned_modelstring | null
    • data[].[].training_filestringrequired
    • data[].[].validation_filestring | null
    • data[].[].status"validating" | "admitted" | "dispatching" | "queued" | "running" | "succeeded" | "failed" | "cancelling" | "cancelled" | "deleting" | "deleted"required
    • data[].[].commercial_lane"byok"required
    • data[].[].billing_state"pending" | "admitted" | "not_billable" | "receipt_committed" | "failed"required
    • data[].[].provider_cost_evidenceobject
    • data[].[].receiptobject
    • data[].[].errorobject
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/fine_tuning/jobs" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create an admitted fine-tuning job

POST/v1/foundry/fine_tuning/jobs

adminAPI keys refusedfoundry_createFineTuningJob

Request body application/json

  • provider"together"required
  • modelstringrequired

    min length 1 · max length 512

  • training_filestringrequired
  • validation_filestring | null
  • workspace_idstring | null
  • commercial_lane"byok"required
  • n_epochsinteger | null

    min 1

  • n_checkpointsinteger | null

    min 0

  • n_evalsinteger | null

    min 0

  • batch_sizeinteger | null

    min 1

  • learning_ratenumber | null
  • suffixstring | null

    min length 1 · max length 64

  • loraboolean | null

Responses

  • 200Idempotent replay.
    Response fields
    • idstringrequired
    • object"fine_tuning.job"required
    • providerstringrequired
    • provider_job_idstring | null
    • modelstringrequired
    • fine_tuned_modelstring | null
    • training_filestringrequired
    • validation_filestring | null
    • status"validating" | "admitted" | "dispatching" | "queued" | "running" | "succeeded" | "failed" | "cancelling" | "cancelled" | "deleting" | "deleted"required
    • commercial_lane"byok"required
    • billing_state"pending" | "admitted" | "not_billable" | "receipt_committed" | "failed"required
    • provider_cost_evidenceobject
    • receiptobject
    • errorobject
  • 202Provider job accepted.
    Response fields
    • idstringrequired
    • object"fine_tuning.job"required
    • providerstringrequired
    • provider_job_idstring | null
    • modelstringrequired
    • fine_tuned_modelstring | null
    • training_filestringrequired
    • validation_filestring | null
    • status"validating" | "admitted" | "dispatching" | "queued" | "running" | "succeeded" | "failed" | "cancelling" | "cancelled" | "deleting" | "deleted"required
    • commercial_lane"byok"required
    • billing_state"pending" | "admitted" | "not_billable" | "receipt_committed" | "failed"required
    • provider_cost_evidenceobject
    • receiptobject
    • errorobject
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/fine_tuning/jobs" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "together",
    "model": "string",
    "training_file": "string",
    "commercial_lane": "byok"
  }'

Get and refresh a fine-tuning job

GET/v1/foundry/fine_tuning/jobs/{job_id}

adminAPI keys refusedfoundry_getFineTuningJob

Parameters

  • job_idpath · stringrequired

Responses

  • 200Successful response.
    Response fields
    • idstringrequired
    • object"fine_tuning.job"required
    • providerstringrequired
    • provider_job_idstring | null
    • modelstringrequired
    • fine_tuned_modelstring | null
    • training_filestringrequired
    • validation_filestring | null
    • status"validating" | "admitted" | "dispatching" | "queued" | "running" | "succeeded" | "failed" | "cancelling" | "cancelled" | "deleting" | "deleted"required
    • commercial_lane"byok"required
    • billing_state"pending" | "admitted" | "not_billable" | "receipt_committed" | "failed"required
    • provider_cost_evidenceobject
    • receiptobject
    • errorobject
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/fine_tuning/jobs/$JOB_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Delete a terminal provider fine-tuning job

DELETE/v1/foundry/fine_tuning/jobs/{job_id}

adminAPI keys refusedfoundry_deleteFineTuningJob

Parameters

  • job_idpath · stringrequired

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/foundry/fine_tuning/jobs/$JOB_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Cancel a provider fine-tuning job when contract-backed

POST/v1/foundry/fine_tuning/jobs/{job_id}/cancel

adminAPI keys refusedfoundry_cancelFineTuningJob

Parameters

  • job_idpath · stringrequired

Responses

  • 200Successful response.
    Response fields
    • idstringrequired
    • object"fine_tuning.job"required
    • providerstringrequired
    • provider_job_idstring | null
    • modelstringrequired
    • fine_tuned_modelstring | null
    • training_filestringrequired
    • validation_filestring | null
    • status"validating" | "admitted" | "dispatching" | "queued" | "running" | "succeeded" | "failed" | "cancelling" | "cancelled" | "deleting" | "deleted"required
    • commercial_lane"byok"required
    • billing_state"pending" | "admitted" | "not_billable" | "receipt_committed" | "failed"required
    • provider_cost_evidenceobject
    • receiptobject
    • errorobject
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/fine_tuning/jobs/$JOB_ID/cancel" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List provider fine-tuning checkpoints when contract-backed

GET/v1/foundry/fine_tuning/jobs/{job_id}/checkpoints

adminAPI keys refusedfoundry_listFineTuningCheckpoints

Parameters

  • job_idpath · stringrequired

Responses

  • 200Successful response.
    Response fields
    • dataobject[]required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/fine_tuning/jobs/$JOB_ID/checkpoints" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List normalized fine-tuning events

GET/v1/foundry/fine_tuning/jobs/{job_id}/events

adminAPI keys refusedfoundry_listFineTuningEvents

Parameters

  • job_idpath · stringrequired

Responses

  • 200Successful response.
    Response fields
    • dataobject[]required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/fine_tuning/jobs/$JOB_ID/events" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List tenant private fine-tuned models

GET/v1/foundry/fine_tuning/models

adminTested with an API keyfoundry_listFineTunedPrivateModels

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/fine_tuning/models" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Get a tenant private fine-tuned model

GET/v1/foundry/fine_tuning/models/{model_id}

adminAPI keys refusedfoundry_getFineTunedPrivateModel

Parameters

  • model_idpath · stringrequired

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/fine_tuning/models/$MODEL_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List contract-backed fine-tuning provider operations and executable lanes

GET/v1/foundry/fine_tuning/providers

adminTested with an API keyfoundry_listFineTuningProviders

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/fine_tuning/providers" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Forecast

Forecast a time series

POST/v1/foundry/forecast

API keys refusedfoundry_forecastSeries

Dispatches a model and is billed from Stripe-funded prepaid Foundry credits only: for a Console (pf_console) or One app (pf_one) login the gateway delegates foundry:gateway:invoke:prepaid, and Foundry reserves and settles the call against the organization's prepaid credit ledger, refusing it when the credits do not cover it. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

  • modelstringrequired
  • timestampsinteger[]required
  • valuesnumber[][]required
  • featuresstring[]

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/forecast" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "string",
    "timestamps": [],
    "values": []
  }'

Generate

Generate images from a prompt

POST/v1/foundry/generate/image

API keys refusedfoundry_generateImage

Dispatches a model and is billed from Stripe-funded prepaid Foundry credits only: for a Console (pf_console) or One app (pf_one) login the gateway delegates foundry:gateway:invoke:prepaid, and Foundry reserves and settles the call against the organization's prepaid credit ledger, refusing it when the credits do not cover it. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

  • modelstringrequired
  • promptstringrequired
  • ninteger

    min 1

  • sizestring

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/generate/image" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "string",
    "prompt": "string"
  }'

Generation

Get generation metadata and receipt projection

GET/v1/foundry/generation

Tested with an API keyfoundry_getGeneration

Generation metadata and receipt projection for your own request id. Not billed. Works with a Console login session (pf_console), for which the gateway delegates foundry:gateway:invoke. One app sign-ins (pf_one) are refused by Foundry: their prepaid child covers only billed inference. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Parameters

  • idquery · stringrequired

Responses

  • 200Successful response.
    Response fields
    • dataobjectrequired
    • data.idstring
    • data.request_idstring
    • data.modelstring
    • data.provider_namestring
    • data.is_byokboolean
    • data.total_costnumber
    • data.foundry_receiptobject
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/generation?id=$ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Get retained generation content

GET/v1/foundry/generation/content

API keys refusedfoundry_getGenerationContent

Retained prompt and output for one of your own generations (id), scoped to your organization. Not billed. Foundry admits foundry:gateway:invoke or management (openrouter_generations.rs authenticate_invoke_or_management): a Console login session gets the delegated foundry:gateway:invoke child, and an organization API key needs the foundry:invoke permission. 404 when the id is not yours; 403 content_not_retained when Foundry kept no content for it, 410 content_expired once retention ends.

Parameters

  • idquery · stringrequired

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/generation/content?id=$ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Submit idempotent generation feedback

POST/v1/foundry/generation/feedback

Tested with an API keyIdempotency-Key requiredfoundry_submitGenerationFeedback

Record feedback on one of your own generations (generation_id, category, optional comment up to 1000 characters). Requires an Idempotency-Key (8-128 characters of A-Z a-z 0-9 - _ . :): a retry with the same key and body is answered as a success without recording twice, and the same key with a different body is a 409. Not billed. Foundry admits foundry:gateway:invoke or management (openrouter_generations.rs authenticate_invoke_or_management): a Console login session gets the delegated foundry:gateway:invoke child, and an organization API key needs the foundry:invoke permission.

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key, 8-128 characters of A-Z a-z 0-9 - _ . :; Foundry refuses feedback without one (400). Reuse it to retry.

Request body application/json

  • generation_idstringrequired
  • category"latency" | "incoherence" | "incorrect_response" | "formatting" | "billing" | "api_error" | "other"required
  • commentstring

    max length 1000

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/generation/feedback" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "generation_id": "string",
    "category": "latency"
  }'

Generations

Get a generation receipt

GET/v1/foundry/generations/{receipt_id}

foundry:gateway:invokeTested with an API keyfoundry_getGenerationReceipt

Parameters

  • receipt_idpath · stringrequired

Responses

  • 200Successful response.
    Response fields
    • versionstring
    • receipt_idstringrequired
    • request_idstringrequired
    • model_idstring
    • provider_idstring
    • lane"pay_as_you_go" | "subscription_entitled" | "byok"
    • usageobject
    • usage.prompt_tokensinteger

      min 0

    • usage.completion_tokensinteger

      min 0

    • usage.total_tokensinteger

      min 0

    • usage.costnumber

      min 0

    • signaturestring
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/generations/$RECEIPT_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Get a generation receipt by request ID

GET/v1/foundry/generations/by-request/{request_id}

foundry:gateway:invokeTested with an API keyfoundry_getGenerationReceiptByRequest

Parameters

  • request_idpath · stringrequired

Responses

  • 200Successful response.
    Response fields
    • versionstring
    • receipt_idstringrequired
    • request_idstringrequired
    • model_idstring
    • provider_idstring
    • lane"pay_as_you_go" | "subscription_entitled" | "byok"
    • usageobject
    • usage.prompt_tokensinteger

      min 0

    • usage.completion_tokensinteger

      min 0

    • usage.total_tokensinteger

      min 0

    • usage.costnumber

      min 0

    • signaturestring
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/generations/by-request/$REQUEST_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Images

Validate an image generation request

POST/v1/foundry/images

foundry:gateway:invokeAPI keys refusedfoundry_createImage

Request body application/json

  • modelstringrequired
  • promptstring
  • providerobject
  • provider.orderstring[]
  • provider.onlystring[]
  • provider.ignorestring[]
  • provider.allow_fallbacksboolean
  • provider.require_parametersboolean
  • provider.zdrboolean
  • provider.data_collection"allow" | "deny"
  • provider.sortany
  • provider.max_priceobject

Responses

  • 501The request is validated, but this modality transport is not executable.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/images" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "string"
  }'

List image-capable models

GET/v1/foundry/images/models

foundry:gateway:invokeTested with an API keyfoundry_listImageModels

Responses

  • 200Successful response.
    Response fields
    • dataobject[]required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/images/models" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Infer

Run Foundry universal inference

POST/v1/foundry/infer

Tested with an API keyfoundry_createInference

Dispatches a model and is billed from Stripe-funded prepaid Foundry credits only: for a Console (pf_console) or One app (pf_one) login the gateway delegates foundry:gateway:invoke:prepaid, and Foundry reserves and settles the call against the organization's prepaid credit ledger, refusing it when the credits do not cover it. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

  • providerstringrequired
  • modelstringrequired
  • inputobjectrequired
  • parametersobject

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/infer" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "string",
    "model": "string",
    "input": {}
  }'

Stream Foundry universal inference

POST/v1/foundry/infer/stream

Tested with an API keyfoundry_streamInference

Server-sent events. Dispatches a model and is billed from Stripe-funded prepaid Foundry credits only: for a Console (pf_console) or One app (pf_one) login the gateway delegates foundry:gateway:invoke:prepaid, and Foundry reserves and settles the call against the organization's prepaid credit ledger, refusing it when the credits do not cover it. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

  • providerstringrequired
  • modelstringrequired
  • inputobjectrequired
  • parametersobject

Responses

  • 200Server-sent event stream.
    Response fields

    Type: string

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/infer/stream" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "string",
    "model": "string",
    "input": {}
  }'

Keys

List tenant API keys

GET/v1/foundry/keys

API keys refusedAuthorized by the servicefoundry_listApiKeys

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/keys" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create a tenant API key

POST/v1/foundry/keys

API keys refusedIdempotency-Key requiredAuthorized by the servicefoundry_createApiKey

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; the gateway's native key handler refuses a write without one.

Request body application/json

  • labelstring | nullrequired

    Display label (UTF-8, at most 120 bytes, no control characters), or null. max length 120

  • scopes"foundry:gateway:invoke:prepaid"[]required

    Exactly ["foundry:gateway:invoke:prepaid"].

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/keys" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "label": "string",
    "scopes": [
      "foundry:gateway:invoke:prepaid"
    ]
  }'

Delete a tenant API key

DELETE/v1/foundry/keys/{key_id}

API keys refusedIdempotency-Key requiredAuthorized by the servicefoundry_deleteApiKey

Parameters

  • key_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Stable key; the gateway's native key handler refuses a write without one.

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/foundry/keys/$KEY_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY"

Rotate

Rotate a tenant API key

POST/v1/foundry/keys/{key_id}/rotate

API keys refusedIdempotency-Key requiredAuthorized by the servicefoundry_rotateApiKey

Replaces the key with a new secret (shown once); the old key stops working. Gateway-native (gateway/src/foundry-key-write.ts), One account login only.

Parameters

  • key_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Stable key; the gateway's native key handler refuses a write without one.

Request body application/json

  • labelstring | nullrequired

    Display label (UTF-8, at most 120 bytes, no control characters), or null. max length 120

  • scopes"foundry:gateway:invoke:prepaid"[]required

    Exactly ["foundry:gateway:invoke:prepaid"].

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/keys/$KEY_ID/rotate" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "label": "string",
    "scopes": [
      "foundry:gateway:invoke:prepaid"
    ]
  }'

Messages

Create an Anthropic-compatible message

POST/v1/foundry/messages

foundry:gateway:invokeTested with an API keyfoundry_createMessage

Anthropic Messages, served by Foundry at /api/v1/messages. Gateway: One account login (delegated foundry:gateway:invoke); organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

  • modelstringrequired
  • messagesobject[]required
  • messages[].[].rolestringrequired
  • messages[].[].contentanyrequired
  • max_tokensintegerrequired

    min 1

  • streamboolean
  • providerobject
  • provider.orderstring[]
  • provider.onlystring[]
  • provider.ignorestring[]
  • provider.allow_fallbacksboolean
  • provider.require_parametersboolean
  • provider.zdrboolean
  • provider.data_collection"allow" | "deny"
  • provider.sortany
  • provider.max_priceobject

Responses

  • 200Successful response.
    Response fields
    • idstringrequired
    • modelstring
    • contentobject[]required
    • usageobject
    • usage.prompt_tokensinteger

      min 0

    • usage.completion_tokensinteger

      min 0

    • usage.total_tokensinteger

      min 0

    • usage.costnumber

      min 0

    • foundryobject
    • foundry.request_idstring
    • foundry.receipt_idstring
    • foundry.billing_lane"pay_as_you_go" | "subscription_entitled" | "byok"
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/messages" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "string",
    "messages": [],
    "max_tokens": 1
  }'

Models

List executable models

GET/v1/foundry/models

Tested with an API keyNo key neededfoundry_listModels

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/models"

Predict

Predict over tabular rows

POST/v1/foundry/predict

API keys refusedfoundry_predictTabular

Dispatches a model and is billed from Stripe-funded prepaid Foundry credits only: for a Console (pf_console) or One app (pf_one) login the gateway delegates foundry:gateway:invoke:prepaid, and Foundry reserves and settles the call against the organization's prepaid credit ledger, refusing it when the credits do not cover it. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

  • modelstringrequired
  • columnsstring[]required
  • rowsany[][]required

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/predict" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "string",
    "columns": [],
    "rows": []
  }'

Provider credential policies

List tenant provider credential policies

GET/v1/foundry/provider-credential-policies

iam:readAPI keys refusedfoundry_listProviderCredentialPolicies

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/provider-credential-policies" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Set a tenant provider credential policy

PUT/v1/foundry/provider-credential-policies/{provider_id}

iam:writeAPI keys refusedfoundry_setProviderCredentialPolicy

Parameters

  • provider_idpath · stringrequired

Request body application/json

  • mode"platform" | "prefer_byok" | "require_byok"required

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/foundry/provider-credential-policies/$PROVIDER_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "platform"
  }'

Provider credentials

Summarise your provider credentials and credential policies

GET/v1/foundry/provider-credentials/summary

Tested with an API keyAuthorized by the servicefoundry_getProviderCredentialSummary

Console login session or an organization API key holding foundry:read (a one-scope foundry:reporting:read child, Sandbox). Configuration metadata only: provider ids, enabled flags, credential modes and timestamps. No secret material, and no health or execution verification. Takes no query. gateway/src/foundry-reporting-read.ts.

Responses

  • 200Provider credential configuration summary
    Response fields
    • dataobjectrequired
    • data.object"provider_credential_summary"required
    • data.sourcestringrequired
    • data.generated_atstring (date-time)required
    • data.completebooleanrequired
    • data.consistencystringrequired
    • data.configuration_onlybooleanrequired
    • data.health_verifiedbooleanrequired
    • data.execution_verifiedbooleanrequired
    • data.default_credential_modestringrequired
    • data.credential_countintegerrequired

      min 0

    • data.enabled_credential_countintegerrequired

      min 0

    • data.credentialsobject[]required
    • data.credentials[].[].provider_idstringrequired
    • data.credentials[].[].enabledboolean

      Credentials only

    • data.credentials[].[].created_atstring (date-time)required
    • data.credentials[].[].updated_atstring (date-time)required
    • data.credentials[].[].credential_mode"platform" | "prefer_byok" | "require_byok"required
    • data.policiesobject[]required
    • data.policies[].[].provider_idstringrequired
    • data.policies[].[].enabledboolean

      Credentials only

    • data.policies[].[].created_atstring (date-time)required
    • data.policies[].[].updated_atstring (date-time)required
    • data.policies[].[].credential_mode"platform" | "prefer_byok" | "require_byok"required
    • scopeobjectrequired
    • scope.organization_idstringrequired
    • scope.projects"all"required
    • scope.environments"all"required
    • scope.authority"native_reporting_read"required
    • scope.scope"foundry:reporting:read"required
    • scope.provenanceobjectrequired
    • scope.provenance.principal_idstring
    • scope.provenance.platform_id"pf_foundry"
    • scope.provenance.selected_project_idstring | null
    • scope.provenance.selected_workspace_idstring | null
    • scope.provenance.selected_environment"sandbox"
    • scope.provenance.role"authorization_only"
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/provider-credentials/summary" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Provider keys

List tenant BYOK provider keys

GET/v1/foundry/provider-keys

iam:readAPI keys refusedfoundry_listProviderKeys

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/provider-keys" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Register a tenant BYOK provider key

POST/v1/foundry/provider-keys

iam:writeAPI keys refusedfoundry_createProviderKey

Request body application/json

  • provider_idstringrequired
  • api_keystringrequired
  • labelstring | null

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/provider-keys" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "provider_id": "string",
    "api_key": "string"
  }'

Delete a tenant provider key

DELETE/v1/foundry/provider-keys/{provider_id}

iam:writeAPI keys refusedfoundry_deleteProviderKey

Parameters

  • provider_idpath · stringrequired

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/foundry/provider-keys/$PROVIDER_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Enable or disable a tenant provider key

PATCH/v1/foundry/provider-keys/{provider_id}

iam:writeAPI keys refusedfoundry_updateProviderKey

Parameters

  • provider_idpath · stringrequired

Request body application/json

  • enabledbooleanrequired

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/foundry/provider-keys/$PROVIDER_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": true
  }'

Receipts

List the current and retired receipt verification keys

GET/v1/foundry/receipts/verification-keys

Tested with an API keyfoundry_listReceiptVerificationKeys

Public. The active receipt-signing key plus every retired key that still verifies receipts signed before a rotation. Public keys only; retired keys verify, they never sign.

Responses

  • 200The current key and the retired keys that still verify.
    Response fields
    • currentobjectrequired

      Public verification material for a Foundry receipt-signing key (foundry-core GenerationReceiptVerificationKey).

    • current.receipt_versionstringrequired

      Receipt schema this key verifies, e.g. foundry.generation_receipt.v1.

    • current.key_idstringrequired

      Versioned key identifier copied into receipt signatures, e.g. foundry-receipt-key-2026-10. min length 1 · max length 128

    • current.algorithmstringrequired

      Signature algorithm and digest construction, e.g. ed25519-blake3.

    • current.public_key_base64urlstringrequired

      Raw 32-byte Ed25519 public key, unpadded base64url. pattern ^[A-Za-z0-9_-]{43}$

    • retiredobject[]required

      Retired keys that still verify receipts signed before a rotation. Empty when no rotation has happened.

    • retired[].[].receipt_versionstringrequired

      Receipt schema this key verifies, e.g. foundry.generation_receipt.v1.

    • retired[].[].key_idstringrequired

      Versioned key identifier copied into receipt signatures, e.g. foundry-receipt-key-2026-10. min length 1 · max length 128

    • retired[].[].algorithmstringrequired

      Signature algorithm and digest construction, e.g. ed25519-blake3.

    • retired[].[].public_key_base64urlstringrequired

      Raw 32-byte Ed25519 public key, unpadded base64url. pattern ^[A-Za-z0-9_-]{43}$

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/receipts/verification-keys" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Get the current receipt verification key

GET/v1/foundry/receipts/verification-keys/current

Tested with an API keyNo key neededfoundry_getReceiptVerificationKey

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/receipts/verification-keys/current"

Recommend

Recommend items

POST/v1/foundry/recommend

API keys refusedfoundry_recommendItems

Dispatches a model and is billed from Stripe-funded prepaid Foundry credits only: for a Console (pf_console) or One app (pf_one) login the gateway delegates foundry:gateway:invoke:prepaid, and Foundry reserves and settles the call against the organization's prepaid credit ledger, refusing it when the credits do not cover it. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

  • modelstringrequired
  • inputanyrequired

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/recommend" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "string",
    "input": "string"
  }'

Registry

Compare registry model dossiers

GET/v1/foundry/registry/compare

Tested with an API keyNo key neededfoundry_compareRegistryModels

Pass two or more model parameters (canonical model ids from the registry); fewer answers 400 with code FOUNDRY_UPSTREAM_REFUSED. The 0.1.13 SDK, CLI and MCP don't pass model, so call it over HTTP.

Parameters

  • modelquery · string[]required

    Canonical model id to compare. Repeat the parameter 2 to 6 times with distinct ids (?model=a&model=b).

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/registry/compare?model=$MODEL&model=anthropic%2Fclaude-haiku-4.5&model=anthropic%2Fclaude-3-haiku"

List registry facets

GET/v1/foundry/registry/facets

Tested with an API keyNo key neededfoundry_listRegistryFacets

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/registry/facets"

List registry labs

GET/v1/foundry/registry/labs

Tested with an API keyNo key neededfoundry_listRegistryLabs

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/registry/labs"

Get a registry lab dossier

GET/v1/foundry/registry/labs/{lab_id}

Tested with an API keyNo key neededfoundry_getRegistryLab

Parameters

  • lab_idpath · stringrequired

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/registry/labs/$LAB_ID"

Get current model-base metadata

GET/v1/foundry/registry/model-base/current

Tested with an API keyNo key neededfoundry_getCurrentModelBase

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/registry/model-base/current"

List model-base releases

GET/v1/foundry/registry/model-base/releases

Tested with an API keyNo key neededfoundry_listModelBaseReleases

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/registry/model-base/releases"

List registry models

GET/v1/foundry/registry/models

Tested with an API keyNo key neededfoundry_listRegistryModels

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/registry/models"

Get a registry model

GET/v1/foundry/registry/models/{canonical_model_id}

Tested with an API keyNo key neededfoundry_getRegistryModel

Parameters

  • canonical_model_idpath · stringrequired

    Canonical model id, e.g. openai/gpt-4o; its / segments are sent as path segments.

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/registry/models/$CANONICAL_MODEL_ID"

List benchmark results for a model

GET/v1/foundry/registry/models/{canonical_model_id}/benchmarks

Tested with an API keyNo key neededfoundry_listModelBenchmarks

Parameters

  • canonical_model_idpath · stringrequired

    Canonical model id, e.g. openai/gpt-4o; its / segments are sent as path segments.

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/registry/models/$CANONICAL_MODEL_ID/benchmarks"

Get a model dossier

GET/v1/foundry/registry/models/{canonical_model_id}/dossier

Tested with an API keyNo key neededfoundry_getModelDossier

Parameters

  • canonical_model_idpath · stringrequired

    Canonical model id, e.g. openai/gpt-4o; its / segments are sent as path segments.

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/registry/models/$CANONICAL_MODEL_ID/dossier"

List model access offers

GET/v1/foundry/registry/models/{canonical_model_id}/offers

Tested with an API keyNo key neededfoundry_listModelOffers

Parameters

  • canonical_model_idpath · stringrequired

    Canonical model id, e.g. openai/gpt-4o; its / segments are sent as path segments.

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/registry/models/$CANONICAL_MODEL_ID/offers"

List the sources behind a model record

GET/v1/foundry/registry/models/{canonical_model_id}/sources

Tested with an API keyNo key neededfoundry_listModelSources

Parameters

  • canonical_model_idpath · stringrequired

    Canonical model id, e.g. openai/gpt-4o; its / segments are sent as path segments.

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/registry/models/$CANONICAL_MODEL_ID/sources"

List registry provenance

GET/v1/foundry/registry/provenance

No key neededfoundry_listRegistryProvenance

Foundry answers 413 ("source catalog requires V2 pagination") for every request; use listRegistryProvenanceV2 (paginated).

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/registry/provenance"

List registry providers

GET/v1/foundry/registry/providers

Tested with an API keyNo key neededfoundry_listRegistryProviders

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/registry/providers"

Get a registry provider

GET/v1/foundry/registry/providers/{provider_id}

Tested with an API keyNo key neededfoundry_getRegistryProvider

Parameters

  • provider_idpath · stringrequired

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/registry/providers/$PROVIDER_ID"

Get a provider dossier

GET/v1/foundry/registry/providers/{provider_id}/dossier

Tested with an API keyNo key neededfoundry_getProviderDossier

Parameters

  • provider_idpath · stringrequired

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/registry/providers/$PROVIDER_ID/dossier"

List registry sources

GET/v1/foundry/registry/sources

No key neededfoundry_listRegistrySources

Foundry answers 413 ("source catalog requires V2 pagination") for every request; use listRegistrySourcesV2 (paginated).

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/registry/sources"

Request logs

Read your organization's inference request logs

GET/v1/foundry/request-logs

Tested with an API keyAuthorized by the servicefoundry_listRequestLogs

Console login session or an organization API key holding foundry:read (a one-scope foundry:reporting:read child, Sandbox). Read-only, newest first; the gateway rejects any query parameter other than the ones below and returns only the listed fields. gateway/src/foundry-reporting-read.ts.

Parameters

  • startquery · string (date-time)

    RFC 3339 start, must be before end

  • endquery · string (date-time)

    RFC 3339 end

  • modelquery · string
  • providerquery · string
  • limitquery · integer
  • offsetquery · integer

Responses

  • 200One page of request logs
    Response fields
    • dataobject[]required
    • data[].[].idstringrequired
    • data[].[].timestampstring (date-time)required
    • data[].[].modelstringrequired
    • data[].[].providerstringrequired
    • data[].[].statusintegerrequired

      min 100 · max 599

    • data[].[].prompt_tokensintegerrequired

      min 0

    • data[].[].completion_tokensintegerrequired

      min 0

    • data[].[].total_tokensintegerrequired

      min 0

    • data[].[].latency_msintegerrequired

      min 0

    • data[].[].estimated_cost_microdollarsintegerrequired

      min 0

    • scopeobjectrequired
    • scope.organization_idstringrequired
    • scope.projects"all"required
    • scope.environments"all"required
    • scope.authority"native_reporting_read"required
    • scope.scope"foundry:reporting:read"required
    • scope.provenanceobjectrequired
    • scope.provenance.principal_idstring
    • scope.provenance.platform_id"pf_foundry"
    • scope.provenance.selected_project_idstring | null
    • scope.provenance.selected_workspace_idstring | null
    • scope.provenance.selected_environment"sandbox"
    • scope.provenance.role"authorization_only"
    • metaobjectrequired
    • meta.limitintegerrequired

      min 0

    • meta.offsetintegerrequired

      min 0

    • meta.total_countintegerrequired

      min 0

    • meta.has_morebooleanrequired
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/request-logs" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Rerank

Validate a rerank request

POST/v1/foundry/rerank

foundry:gateway:invokeAPI keys refusedfoundry_createRerank

Request body application/json

  • modelstringrequired
  • querystringrequired
  • documentsany[]required
  • top_ninteger

    min 1

  • providerobject
  • provider.orderstring[]
  • provider.onlystring[]
  • provider.ignorestring[]
  • provider.allow_fallbacksboolean
  • provider.require_parametersboolean
  • provider.zdrboolean
  • provider.data_collection"allow" | "deny"
  • provider.sortany
  • provider.max_priceobject

Responses

  • 501The request is validated, but this modality transport is not executable.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/rerank" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "string",
    "query": "string",
    "documents": [
      "string"
    ]
  }'

Responses

Create an OpenAI Responses response

POST/v1/foundry/responses

foundry:gateway:invokeTested with an API keyfoundry_createResponse

Request body application/json

  • modelstringrequired
  • inputanyrequired
  • streamboolean
  • providerobject
  • provider.orderstring[]
  • provider.onlystring[]
  • provider.ignorestring[]
  • provider.allow_fallbacksboolean
  • provider.require_parametersboolean
  • provider.zdrboolean
  • provider.data_collection"allow" | "deny"
  • provider.sortany
  • provider.max_priceobject

Responses

  • 200Successful response.
    Response fields
    • idstringrequired
    • objectstring
    • modelstring
    • outputobject[]
    • usageobject
    • usage.prompt_tokensinteger

      min 0

    • usage.completion_tokensinteger

      min 0

    • usage.total_tokensinteger

      min 0

    • usage.costnumber

      min 0

    • foundryobject
    • foundry.request_idstring
    • foundry.receipt_idstring
    • foundry.billing_lane"pay_as_you_go" | "subscription_entitled" | "byok"
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/responses" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "string",
    "input": "string"
  }'

Routing

Build an eval run from per-item outcomes

POST/v1/foundry/routing/evals/aggregate

Tested with an API keyfoundry_aggregateRoutingEval

Computes only (no provider dispatch); not billed. Works with a Console login session (pf_console), for which the gateway delegates foundry:gateway:invoke. One app sign-ins (pf_one) are refused by Foundry: their prepaid child covers only billed inference. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/routing/evals/aggregate" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Check whether an eval run supports a public claim

POST/v1/foundry/routing/evals/claim-readiness

Tested with an API keyfoundry_checkRoutingEvalClaimReadiness

Computes only (no provider dispatch); not billed. Works with a Console login session (pf_console), for which the gateway delegates foundry:gateway:invoke. One app sign-ins (pf_one) are refused by Foundry: their prepaid child covers only billed inference. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/routing/evals/claim-readiness" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Build a dry-run routing eval plan

POST/v1/foundry/routing/evals/plan

Tested with an API keyfoundry_planRoutingEval

Computes only (no provider dispatch); not billed. Works with a Console login session (pf_console), for which the gateway delegates foundry:gateway:invoke. One app sign-ins (pf_one) are refused by Foundry: their prepaid child covers only billed inference. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/routing/evals/plan" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Aggregate outcomes for a planned suite

POST/v1/foundry/routing/evals/plan/aggregate

Tested with an API keyfoundry_aggregatePlannedRoutingEval

Computes only (no provider dispatch); not billed. Works with a Console login session (pf_console), for which the gateway delegates foundry:gateway:invoke. One app sign-ins (pf_one) are refused by Foundry: their prepaid child covers only billed inference. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/routing/evals/plan/aggregate" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Build a plan and runner-ready jobs (no provider execution)

POST/v1/foundry/routing/evals/plan/dispatch

Tested with an API keyfoundry_dispatchRoutingEvalPlan

Computes only (no provider dispatch); not billed. Works with a Console login session (pf_console), for which the gateway delegates foundry:gateway:invoke. One app sign-ins (pf_one) are refused by Foundry: their prepaid child covers only billed inference. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/routing/evals/plan/dispatch" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Aggregate runner reports for a dispatched plan

POST/v1/foundry/routing/evals/plan/dispatch/aggregate

Tested with an API keyfoundry_aggregateRoutingEvalDispatch

Computes only (no provider dispatch); not billed. Works with a Console login session (pf_console), for which the gateway delegates foundry:gateway:invoke. One app sign-ins (pf_one) are refused by Foundry: their prepaid child covers only billed inference. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/routing/evals/plan/dispatch/aggregate" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Explain a persisted routing invocation

GET/v1/foundry/routing/invocations/{id}/explain

Tested with an API keyfoundry_explainRoutingInvocation

Computes only (no provider dispatch); not billed. Works with a Console login session (pf_console), for which the gateway delegates foundry:gateway:invoke. One app sign-ins (pf_one) are refused by Foundry: their prepaid child covers only billed inference. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Parameters

  • idpath · stringrequired

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/routing/invocations/$ID/explain" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Preview routing without provider execution

POST/v1/foundry/routing/preview

Tested with an API keyfoundry_previewRoute

Computes only (no provider dispatch); not billed. Works with a Console login session (pf_console), for which the gateway delegates foundry:gateway:invoke. One app sign-ins (pf_one) are refused by Foundry: their prepaid child covers only billed inference. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

  • modelstringrequired
  • modalitystring
  • providerobject
  • provider.orderstring[]
  • provider.onlystring[]
  • provider.ignorestring[]
  • provider.allow_fallbacksboolean
  • provider.require_parametersboolean
  • provider.zdrboolean
  • provider.data_collection"allow" | "deny"
  • provider.sortany
  • provider.max_priceobject

Responses

  • 200Successful response.
    Response fields
    • candidatesobject[]
    • selectedobject
    • executableboolean
    • billing_lanestring
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/routing/preview" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "string"
  }'

Segment

Segment an image

POST/v1/foundry/segment

API keys refusedfoundry_segmentImage

Dispatches a model and is billed from Stripe-funded prepaid Foundry credits only: for a Console (pf_console) or One app (pf_one) login the gateway delegates foundry:gateway:invoke:prepaid, and Foundry reserves and settles the call against the organization's prepaid credit ledger, refusing it when the credits do not cover it. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

  • modelstringrequired
  • imageobject | objectrequired

    {"url": ...} or {"data": base64, "media_type": ...} (convenience.rs ImageInput)

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/segment" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "string",
    "image": {
      "url": "string"
    }
  }'

Speak

Synthesize speech from text

POST/v1/foundry/speak

API keys refusedfoundry_synthesizeSpeech

Dispatches a model and is billed from Stripe-funded prepaid Foundry credits only: for a Console (pf_console) or One app (pf_one) login the gateway delegates foundry:gateway:invoke:prepaid, and Foundry reserves and settles the call against the organization's prepaid credit ledger, refusing it when the credits do not cover it. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

  • modelstringrequired
  • textstringrequired
  • voicestring

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/speak" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "string",
    "text": "string"
  }'

Realtime speech socket (Eleven v4 Turbo)

GET/v1/foundry/speak/stream

foundry_openSpeechSocket

Send {"text","flush"?} messages, {"type":"close"} to end; receive audio frames, a receipt and done. Open it as an HTTP/1.1 WebSocket upgrade; a plain GET gets 426 UPGRADE_REQUIRED. The gateway relays the session unchanged once Foundry accepts it. Billed from Stripe-funded prepaid Foundry credits only: for a Console (pf_console) or One app (pf_one) login the gateway delegates foundry:gateway:invoke:prepaid, and Foundry reserves and settles the session against the organization's prepaid credit ledger, refusing it when the credits do not cover it. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Parameters

  • voice_idquery · stringrequired

    An allowed voice.

  • model_idquery · "eleven_v4_turbo" | "eleven_v4"

    eleven_v4_turbo (default when priced) or eleven_v4.

  • output_formatquery · "mp3_44100_128" | "pcm_16000" | "pcm_24000" | "ulaw_8000"

    Audio format.

Responses

  • 101Switching Protocols: the WebSocket session.
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/speak/stream?voice_id=$VOICE_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Stream speech as it is synthesized (Eleven v4 Turbo)

POST/v1/foundry/speak/stream

foundry_streamSpeech

Audio bytes as they are synthesized, first audio in about a quarter second upstream. Answers x-foundry-receipt-id, x-foundry-characters (characters billed) and x-speech-request-id (name it in a later passage's previous_request_ids to stitch). Billed from Stripe-funded prepaid Foundry credits only: for a Console (pf_console) or One app (pf_one) login the gateway delegates foundry:gateway:invoke:prepaid, and Foundry reserves and settles the session against the organization's prepaid credit ledger, refusing it when the credits do not cover it. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

  • textstringrequired

    The passage to speak. Eleven v4 audio tags such as [laughs] or [whispers] are performed, not read.

  • voice_idstringrequired

    One of Foundry's allowed voices (One's voice and the One app's alternates).

  • model_id"eleven_v4_turbo" | "eleven_v4"

    Default eleven_v4_turbo when Foundry prices it, else eleven_v4.

  • output_format"mp3_44100_128" | "pcm_16000" | "pcm_24000" | "ulaw_8000"
  • previous_textstring
  • next_textstring
  • previous_request_idsstring[]

    x-speech-request-id values of your own recent passages (15 minutes), so this one continues them without a seam; others are ignored.

  • next_request_idsstring[]

Responses

  • 200Audio stream.
    Response fields

    Type: string (binary)

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/speak/stream" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "string",
    "voice_id": "string"
  }'

Summarize

Summarize text

POST/v1/foundry/summarize

API keys refusedfoundry_summarizeText

Dispatches a model and is billed from Stripe-funded prepaid Foundry credits only: for a Console (pf_console) or One app (pf_one) login the gateway delegates foundry:gateway:invoke:prepaid, and Foundry reserves and settles the call against the organization's prepaid credit ledger, refusing it when the credits do not cover it. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

  • modelstringrequired
  • textstringrequired
  • max_tokensinteger

    min 1

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/summarize" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "string",
    "text": "string"
  }'

Tools

Benchmark models (estimates)

POST/v1/foundry/tools/benchmark

Tested with an API keyfoundry_benchmarkModels

Computes only (no provider dispatch); not billed. Works with a Console login session (pf_console), for which the gateway delegates foundry:gateway:invoke. One app sign-ins (pf_one) are refused by Foundry: their prepaid child covers only billed inference. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

  • modelsstring[]required
  • runsinteger

    min 1

  • promptstring
  • max_tokensinteger

    min 1

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/tools/benchmark" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "models": [
      "string"
    ]
  }'

Compare models for a prompt (estimates)

POST/v1/foundry/tools/compare

Tested with an API keyfoundry_compareModels

Computes only (no provider dispatch); not billed. Works with a Console login session (pf_console), for which the gateway delegates foundry:gateway:invoke. One app sign-ins (pf_one) are refused by Foundry: their prepaid child covers only billed inference. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

  • modelsstring[]required
  • promptstringrequired
  • systemstring
  • max_tokensinteger

    min 1

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/tools/compare" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "models": [
      "string"
    ],
    "prompt": "string"
  }'

Estimate the cost of a call

POST/v1/foundry/tools/cost-estimate

Tested with an API keyfoundry_estimateCost

Computes only (no provider dispatch); not billed. Works with a Console login session (pf_console), for which the gateway delegates foundry:gateway:invoke. One app sign-ins (pf_one) are refused by Foundry: their prepaid child covers only billed inference. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

  • modelstringrequired
  • prompt_tokensintegerrequired

    min 0

  • completion_tokensintegerrequired

    min 0

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/tools/cost-estimate" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "string",
    "prompt_tokens": 0,
    "completion_tokens": 0
  }'

Transcribe

Transcribe audio

POST/v1/foundry/transcribe

API keys refusedfoundry_transcribeAudio

Dispatches a model and is billed from Stripe-funded prepaid Foundry credits only: for a Console (pf_console) or One app (pf_one) login the gateway delegates foundry:gateway:invoke:prepaid, and Foundry reserves and settles the call against the organization's prepaid credit ledger, refusing it when the credits do not cover it. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Request body application/json

  • modelstringrequired
  • audiostringrequired

    Base64 audio

  • media_typestringrequired
  • languagestring

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/transcribe" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "string",
    "audio": "string",
    "media_type": "string"
  }'

Realtime transcription socket (Deepgram Nova-3)

GET/v1/foundry/transcribe/stream

foundry_openTranscriptionSocket

Send audio frames; receive interim and final transcripts and a receipt. Billed per audio second. Open it as an HTTP/1.1 WebSocket upgrade; a plain GET gets 426 UPGRADE_REQUIRED. The gateway relays the session unchanged once Foundry accepts it. Billed from Stripe-funded prepaid Foundry credits only: for a Console (pf_console) or One app (pf_one) login the gateway delegates foundry:gateway:invoke:prepaid, and Foundry reserves and settles the session against the organization's prepaid credit ledger, refusing it when the credits do not cover it. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Parameters

  • encodingquery · "linear16" | "mulaw"

    Audio encoding.

  • sample_ratequery · integer

    Hz.

  • languagequery · string

    BCP-47, default en.

Responses

  • 101Switching Protocols: the WebSocket session.
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/transcribe/stream" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

V2

List snapshot-stable Registry V2 benchmark evidence

GET/v1/foundry/v2/registry/benchmarks

Tested with an API keyfoundry_listRegistryBenchmarksV2

Parameters

  • limitquery · integer
  • cursorquery · string

Responses

  • 200Successful response.
    Response fields
    • version2required
    • snapshotobjectrequired
    • dataobject[]required
    • data[].[].idstringrequired
    • data[].[].canonical_model_idstringrequired
    • data[].[].benchmarkstringrequired
    • data[].[].taskstring | null
    • data[].[].scorenumber | null
    • data[].[].unitstring | null
    • data[].[].rankinteger | null
    • data[].[].source_idstring | null
    • data[].[].observed_atstringrequired
    • countintegerrequired

      min 0

    • pageobjectrequired
    • page.countintegerrequired

      min 0

    • page.totalintegerrequired

      min 0

    • page.limitintegerrequired

      min 1

    • page.next_cursorstring | null
    • page.has_morebooleanrequired
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/v2/registry/benchmarks" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Compare V2 registry model dossiers

GET/v1/foundry/v2/registry/compare

Tested with an API keyfoundry_compareRegistryModelsV2

Parameters

  • modelquery · string[]required

    Canonical model id to compare. Repeat the parameter 2 to 6 times with distinct ids (?model=a&model=b).

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/v2/registry/compare?model=$MODEL" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List V2 registry facets

GET/v1/foundry/v2/registry/facets

Tested with an API keyfoundry_listRegistryFacetsV2

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/v2/registry/facets" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List V2 registry labs

GET/v1/foundry/v2/registry/labs

Tested with an API keyfoundry_listRegistryLabsV2

Parameters

  • limitquery · integer
  • cursorquery · string

    Cursor from the previous page.

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/v2/registry/labs" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Get a V2 registry lab dossier

GET/v1/foundry/v2/registry/labs/{lab_id}

Tested with an API keyfoundry_getRegistryLabV2

Parameters

  • lab_idpath · stringrequired

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/v2/registry/labs/$LAB_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Get current V2 model-base metadata

GET/v1/foundry/v2/registry/model-base/current

Tested with an API keyfoundry_getCurrentModelBaseV2

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/v2/registry/model-base/current" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List V2 model-base releases

GET/v1/foundry/v2/registry/model-base/releases

Tested with an API keyfoundry_listModelBaseReleasesV2

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/v2/registry/model-base/releases" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Get an unambiguous V2 model dossier

GET/v1/foundry/v2/registry/model-dossiers/{canonical_model_id}

Tested with an API keyfoundry_getModelDossierV2

Parameters

  • canonical_model_idpath · stringrequired

    Canonical model id, e.g. openai/gpt-4o; its / segments are sent as path segments.

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/v2/registry/model-dossiers/$CANONICAL_MODEL_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List Registry Intelligence V2 models

GET/v1/foundry/v2/registry/models

Tested with an API keyfoundry_listRegistryModelsV2

Parameters

  • limitquery · integer
  • cursorquery · string

    Cursor from the previous page.

  • offsetquery · integer
  • searchquery · string
  • sortquery · string
  • directionquery · string
  • orgquery · string
  • labquery · string
  • providerquery · string
  • taskquery · string
  • capabilityquery · string
  • modalityquery · string
  • model_typequery · string
  • access_modequery · string
  • billing_lanequery · string
  • deployment_scopequery · string
  • routeabilityquery · string
  • model_base_versionquery · string
  • projectionquery · string
  • fieldsquery · string

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/v2/registry/models" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Get a Registry Intelligence V2 model dossier

GET/v1/foundry/v2/registry/models/{canonical_model_id}

Tested with an API keyfoundry_getRegistryModelV2

Parameters

  • canonical_model_idpath · stringrequired

    Canonical model id, e.g. openai/gpt-4o; its / segments are sent as path segments.

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/v2/registry/models/$CANONICAL_MODEL_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List V2 registry provenance

GET/v1/foundry/v2/registry/provenance

Tested with an API keyfoundry_listRegistryProvenanceV2

Parameters

  • limitquery · integer
  • cursorquery · string

    Cursor from the previous page.

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/v2/registry/provenance" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List Registry Intelligence V2 providers

GET/v1/foundry/v2/registry/providers

Tested with an API keyfoundry_listRegistryProvidersV2

Parameters

  • limitquery · integer
  • cursorquery · string

    Cursor from the previous page.

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/v2/registry/providers" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Get a V2 provider dossier

GET/v1/foundry/v2/registry/providers/{provider_id}

Tested with an API keyfoundry_getProviderDossierV2

Parameters

  • provider_idpath · stringrequired

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/v2/registry/providers/$PROVIDER_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List V2 registry sources

GET/v1/foundry/v2/registry/sources

Tested with an API keyfoundry_listRegistrySourcesV2

Parameters

  • limitquery · integer
  • cursorquery · string

    Cursor from the previous page.

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/v2/registry/sources" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Videos

Validate a video generation request

POST/v1/foundry/videos

foundry:gateway:invokeAPI keys refusedfoundry_createVideo

Request body application/json

  • modelstringrequired
  • promptstring
  • providerobject
  • provider.orderstring[]
  • provider.onlystring[]
  • provider.ignorestring[]
  • provider.allow_fallbacksboolean
  • provider.require_parametersboolean
  • provider.zdrboolean
  • provider.data_collection"allow" | "deny"
  • provider.sortany
  • provider.max_priceobject

Responses

  • 501The request is validated, but this modality transport is not executable.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/videos" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "string"
  }'

Validate a video job lookup

GET/v1/foundry/videos/{id}

foundry:gateway:invokeAPI keys refusedfoundry_getVideo

Parameters

  • idpath · stringrequired

Responses

  • 501The request is validated, but this modality transport is not executable.
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/videos/$ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Content

Validate a video content lookup

GET/v1/foundry/videos/{id}/content

foundry:gateway:invokeAPI keys refusedfoundry_getVideoContent

Parameters

  • idpath · stringrequired

Responses

  • 501The request is validated, but this modality transport is not executable.
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/videos/$ID/content" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Status

Get a workload's status

GET/v1/foundry/workloads/{workload_id}/status

API keys refusedfoundry_getWorkloadStatus

Not billed. Works with a Console login session (pf_console), for which the gateway delegates foundry:gateway:invoke. One app sign-ins (pf_one) are refused by Foundry: their prepaid child covers only billed inference. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Parameters

  • workload_idpath · stringrequired

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/foundry/workloads/$WORKLOAD_ID/status" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Terminate

Terminate a workload

POST/v1/foundry/workloads/{workload_id}/terminate

API keys refusedfoundry_terminateWorkload

Not billed. Works with a Console login session (pf_console), for which the gateway delegates foundry:gateway:invoke. One app sign-ins (pf_one) are refused by Foundry: their prepaid child covers only billed inference. Organization API keys get 403 FOUNDRY_HUMAN_SESSION_REQUIRED.

Parameters

  • workload_idpath · stringrequired

Responses

  • 200Successful response.
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/foundry/workloads/$WORKLOAD_ID/terminate" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

L1fe AI Inc. · Built from Genesis 0.3.3 and the live gateway on 2026-10-25. Support