API reference
Use one gateway and API key across OpenAI-compatible, Anthropic, Gemini, and asynchronous media workflows.
- Server
https://api.anyint.aiThe AnyInt Gateway origin serving this OpenAPI document.
73 endpoints
ChatRoom Integration
4 endpointsDiscover key-scoped models and enterprise capabilities for independent ChatRoom clients.
Request example
curl \
--request POST \
--url 'https://api.anyint.ai/v1/tasks/request-costs' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"request_ids": [
"req_example:async"
]
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"request_ids": [
"req_example:async"
]
}Responses
{
"request_costs": [
{
"request_id": "req_example:async",
"credits": 125
}
]
}Native ChatRoom metadata authenticated with a Developer API key. Preserves existing tenant/key visibility and imported stable asset ownership references.
GET /v1/chatroom/modelsRequest example
curl \
--request GET \
--url 'https://api.anyint.ai/v1/chatroom/models?scope=<scope>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| scope | query | string | Required | — |
| limit | query | integer | Optional | —Example: 1000 |
Responses
{
"success": true,
"data": {
"models": [],
"total": 0
}
}Native ChatRoom metadata authenticated with a Developer API key. Preserves existing tenant/key visibility and imported stable asset ownership references.
GET /v1/chatroom/enterprise-contextRequest example
curl \
--request GET \
--url 'https://api.anyint.ai/v1/chatroom/enterprise-context' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Responses
{
"success": true,
"data": {
"featureControls": {
"seedanceAuthorizedAssets": false
}
}
}Native ChatRoom metadata authenticated with a Developer API key. Preserves existing tenant/key visibility and imported stable asset ownership references.
GET /v1/chatroom/key-contextRequest example
curl \
--request GET \
--url 'https://api.anyint.ai/v1/chatroom/key-context' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Responses
{
"success": true,
"data": {
"userId": "user_example",
"apiKeyId": "key_example",
"featureControls": {
"seedanceAuthorizedAssets": false
}
}
}Chat
2 endpointsCreate OpenAI-compatible conversational responses.
When routed through a Gemini adapter, usage includes gemini_usage_metadata with the original token counters for precise modality and cache billing. OpenAI output totals include Gemini thinking tokens; detailed native counters are preserved in Chat Completions, its SSE usage frames, and nonstreaming Responses. Gemini Chat Completions streams emit a terminal choice with finish_reason before data: [DONE]: STOP maps to stop and MAX_TOKENS maps to length. An upstream EOF without a finish reason does not synthesize successful completion. When billing is enabled, built-in web search declared in tools or Responses input.additional_tools requires a compiled price rule covering web_search_queries and the request dimensions. Namespace tool declarations are checked without treating client functions as built-in search. Missing coverage returns HTTP 503 search_tool_pricing_not_configured before initial funding reservation; each actual candidate, including fallback and supply-tier routes, is checked again before provider dispatch. Client function tools are unaffected. Invalid request envelopes, missing model/messages and non-boolean stream values return HTTP 400 before funding or provider dispatch. Provider extension fields are preserved.
POST /v1/chat/completionsRequest example
curl \
--request POST \
--url 'https://api.anyint.ai/v1/chat/completions' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Explain edge computing in 2 sentences."
}
]
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | Optional | Opt in to durable tenant-scoped execution deduplication. Reuse only with the identical request body and API key. Completed or possibly dispatched requests never expire into another execution, including after Redis loss. Upstream errors or settlement rollback after dispatch require a new message ID for another execution; failures before dispatch may retry the same ID. |
| X-Resume-Message-Id | header | string | Optional | Replay a previously generated SSE stream under the original API key and identical request body. This request does not dispatch or bill the provider. Cache retention is 10 minutes and total output is limited to 4 MiB; interrupted generations require a new message ID for continuation. |
| X-Resume-From-Offset | header | integer | Optional | Number of complete SSE events already consumed, matching the last SSE id. Starts at 0; UTF-8 bytes, tokens and characters are not valid units. Takes precedence over Last-Event-ID. |
| Last-Event-ID | header | integer | Optional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
Request body
Required{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Explain edge computing in 2 sentences."
}
]
}Responses
{
"id": "chatcmpl_example",
"object": "chat.completion",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Edge computing processes data near its source, reducing latency and bandwidth use."
},
"finish_reason": "stop"
}
]
}When routed through a Gemini adapter, usage includes gemini_usage_metadata with the original token counters for precise modality and cache billing. OpenAI output totals include Gemini thinking tokens; detailed native counters are preserved in Chat Completions, its SSE usage frames, and nonstreaming Responses. Gemini Chat Completions streams emit a terminal choice with finish_reason before data: [DONE]: STOP maps to stop and MAX_TOKENS maps to length. An upstream EOF without a finish reason does not synthesize successful completion. When billing is enabled, built-in web search declared in tools or Responses input.additional_tools requires a compiled price rule covering web_search_queries and the request dimensions. Namespace tool declarations are checked without treating client functions as built-in search. Missing coverage returns HTTP 503 search_tool_pricing_not_configured before initial funding reservation; each actual candidate, including fallback and supply-tier routes, is checked again before provider dispatch. Client function tools are unaffected. Invalid request envelopes, missing model/messages and non-boolean stream values return HTTP 400 before funding or provider dispatch. Provider extension fields are preserved.
POST /openai/v1/chat/completionsRequest example
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/chat/completions' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Explain edge computing in 2 sentences."
}
]
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | Optional | Opt in to durable tenant-scoped execution deduplication. Reuse only with the identical request body and API key. Completed or possibly dispatched requests never expire into another execution, including after Redis loss. Upstream errors or settlement rollback after dispatch require a new message ID for another execution; failures before dispatch may retry the same ID. |
| X-Resume-Message-Id | header | string | Optional | Replay a previously generated SSE stream under the original API key and identical request body. This request does not dispatch or bill the provider. Cache retention is 10 minutes and total output is limited to 4 MiB; interrupted generations require a new message ID for continuation. |
| X-Resume-From-Offset | header | integer | Optional | Number of complete SSE events already consumed, matching the last SSE id. Starts at 0; UTF-8 bytes, tokens and characters are not valid units. Takes precedence over Last-Event-ID. |
| Last-Event-ID | header | integer | Optional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
Request body
Required{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Explain edge computing in 2 sentences."
}
]
}Responses
{
"id": "chatcmpl_example",
"object": "chat.completion",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Edge computing processes data near its source, reducing latency and bandwidth use."
},
"finish_reason": "stop"
}
]
}Responses
2 endpointsCreate responses with the OpenAI Responses API shape.
When routed through a Gemini adapter, usage includes gemini_usage_metadata with the original token counters for precise modality and cache billing. OpenAI output totals include Gemini thinking tokens; detailed native counters are preserved in Chat Completions, its SSE usage frames, and nonstreaming Responses. When billing is enabled, built-in web search declared in tools or Responses input.additional_tools requires a compiled price rule covering web_search_queries and the request dimensions. Namespace tool declarations are checked without treating client functions as built-in search. Missing coverage returns HTTP 503 search_tool_pricing_not_configured before initial funding reservation; each actual candidate, including fallback and supply-tier routes, is checked again before provider dispatch. Client function tools are unaffected.
POST /v1/responsesRequest example
curl \
--request POST \
--url 'https://api.anyint.ai/v1/responses' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"input": "Write a short welcome message."
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | Optional | Opt in to durable tenant-scoped execution deduplication. Reuse only with the identical request body and API key. Completed or possibly dispatched requests never expire into another execution, including after Redis loss. Upstream errors or settlement rollback after dispatch require a new message ID for another execution; failures before dispatch may retry the same ID. |
| X-Resume-Message-Id | header | string | Optional | Replay a previously generated SSE stream under the original API key and identical request body. This request does not dispatch or bill the provider. Cache retention is 10 minutes and total output is limited to 4 MiB; interrupted generations require a new message ID for continuation. |
| X-Resume-From-Offset | header | integer | Optional | Number of complete SSE events already consumed, matching the last SSE id. Starts at 0; UTF-8 bytes, tokens and characters are not valid units. Takes precedence over Last-Event-ID. |
| Last-Event-ID | header | integer | Optional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
Request body
Required{
"model": "your-model-id",
"input": "Write a short welcome message."
}Responses
{
"id": "resp_example",
"object": "response",
"status": "completed"
}When routed through a Gemini adapter, usage includes gemini_usage_metadata with the original token counters for precise modality and cache billing. OpenAI output totals include Gemini thinking tokens; detailed native counters are preserved in Chat Completions, its SSE usage frames, and nonstreaming Responses. When billing is enabled, built-in web search declared in tools or Responses input.additional_tools requires a compiled price rule covering web_search_queries and the request dimensions. Namespace tool declarations are checked without treating client functions as built-in search. Missing coverage returns HTTP 503 search_tool_pricing_not_configured before initial funding reservation; each actual candidate, including fallback and supply-tier routes, is checked again before provider dispatch. Client function tools are unaffected.
POST /openai/v1/responsesRequest example
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/responses' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"input": "Write a short welcome message."
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | Optional | Opt in to durable tenant-scoped execution deduplication. Reuse only with the identical request body and API key. Completed or possibly dispatched requests never expire into another execution, including after Redis loss. Upstream errors or settlement rollback after dispatch require a new message ID for another execution; failures before dispatch may retry the same ID. |
| X-Resume-Message-Id | header | string | Optional | Replay a previously generated SSE stream under the original API key and identical request body. This request does not dispatch or bill the provider. Cache retention is 10 minutes and total output is limited to 4 MiB; interrupted generations require a new message ID for continuation. |
| X-Resume-From-Offset | header | integer | Optional | Number of complete SSE events already consumed, matching the last SSE id. Starts at 0; UTF-8 bytes, tokens and characters are not valid units. Takes precedence over Last-Event-ID. |
| Last-Event-ID | header | integer | Optional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
Request body
Required{
"model": "your-model-id",
"input": "Write a short welcome message."
}Responses
{
"id": "resp_example",
"object": "response",
"status": "completed"
}Text Completions
2 endpointsCreate legacy OpenAI-compatible text completions.
Request example
curl \
--request POST \
--url 'https://api.anyint.ai/v1/completions' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"prompt": "Once upon a time"
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | Optional | Opt in to durable tenant-scoped execution deduplication. Reuse only with the identical request body and API key. Completed or possibly dispatched requests never expire into another execution, including after Redis loss. Upstream errors or settlement rollback after dispatch require a new message ID for another execution; failures before dispatch may retry the same ID. |
| X-Resume-Message-Id | header | string | Optional | Replay a previously generated SSE stream under the original API key and identical request body. This request does not dispatch or bill the provider. Cache retention is 10 minutes and total output is limited to 4 MiB; interrupted generations require a new message ID for continuation. |
| X-Resume-From-Offset | header | integer | Optional | Number of complete SSE events already consumed, matching the last SSE id. Starts at 0; UTF-8 bytes, tokens and characters are not valid units. Takes precedence over Last-Event-ID. |
| Last-Event-ID | header | integer | Optional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
Request body
Required{
"model": "your-model-id",
"prompt": "Once upon a time"
}Responses
{
"id": "cmpl_example",
"object": "text_completion",
"choices": [
{
"index": 0,
"text": " there was a quiet coast."
}
]
}Request example
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/completions' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"prompt": "Once upon a time"
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | Optional | Opt in to durable tenant-scoped execution deduplication. Reuse only with the identical request body and API key. Completed or possibly dispatched requests never expire into another execution, including after Redis loss. Upstream errors or settlement rollback after dispatch require a new message ID for another execution; failures before dispatch may retry the same ID. |
| X-Resume-Message-Id | header | string | Optional | Replay a previously generated SSE stream under the original API key and identical request body. This request does not dispatch or bill the provider. Cache retention is 10 minutes and total output is limited to 4 MiB; interrupted generations require a new message ID for continuation. |
| X-Resume-From-Offset | header | integer | Optional | Number of complete SSE events already consumed, matching the last SSE id. Starts at 0; UTF-8 bytes, tokens and characters are not valid units. Takes precedence over Last-Event-ID. |
| Last-Event-ID | header | integer | Optional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
Request body
Required{
"model": "your-model-id",
"prompt": "Once upon a time"
}Responses
{
"id": "cmpl_example",
"object": "text_completion",
"choices": [
{
"index": 0,
"text": " there was a quiet coast."
}
]
}Embeddings
2 endpointsCreate vector embeddings from text input.
Request example
curl \
--request POST \
--url 'https://api.anyint.ai/v1/embeddings' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"input": "A calm ocean at dawn"
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"model": "your-model-id",
"input": "A calm ocean at dawn"
}Responses
{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [
0.012,
-0.008,
0.021
]
}
]
}Request example
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/embeddings' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"input": "A calm ocean at dawn"
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"model": "your-model-id",
"input": "A calm ocean at dawn"
}Responses
{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [
0.012,
-0.008,
0.021
]
}
]
}Moderations
2 endpointsClassify potentially harmful text or image input.
Request example
curl \
--request POST \
--url 'https://api.anyint.ai/v1/moderations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"input": "Text to classify"
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"input": "Text to classify"
}Responses
{
"id": "modr_example",
"model": "your-model-id",
"results": [
{
"flagged": false,
"categories": {},
"category_scores": {}
}
]
}Request example
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/moderations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"input": "Text to classify"
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"input": "Text to classify"
}Responses
{
"id": "modr_example",
"model": "your-model-id",
"results": [
{
"flagged": false,
"categories": {},
"category_scores": {}
}
]
}Batches
8 endpointsSubmit provider-native JSONL batches when object storage is enabled for the deployment.
Request example
curl \
--request GET \
--url 'https://api.anyint.ai/v1/batches' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| after | query | string | Optional | — |
| limit | query | integer | Optional | —Example: 20 |
Responses
{
"object": "list",
"data": [
{
"id": "batch_example",
"object": "batch",
"endpoint": "/v1/chat/completions",
"input_file_id": "file_example",
"completion_window": "24h",
"status": "in_progress",
"created_at": 1700000000,
"request_counts": {
"total": 100,
"completed": 0,
"failed": 0
}
}
],
"first_id": "batch_example",
"last_id": "batch_example",
"has_more": false
}Native prepaid batches validate the stored file checksum and strict JSONL before funding. Every item needs a server-owned execution policy for its pinned route and price, including file-upload and batch-create transport bounds. All item reservations commit atomically before provider submission; insufficient aggregate funds return HTTP 402 without submitting a partial batch. Incompatible provider configurations must be split into separate batches. Each submission permits one file upload and one batch create; an ambiguous submission returns batch_submission_recovery_required and retains funding without automatic resubmission. Failed, cancelled or missing item results do not prove zero provider cost and retain funding for reconciliation.
POST /v1/batchesRequest example
curl \
--request POST \
--url 'https://api.anyint.ai/v1/batches' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"input_file_id": "file_example",
"endpoint": "/v1/chat/completions",
"completion_window": "24h"
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"input_file_id": "file_example",
"endpoint": "/v1/chat/completions",
"completion_window": "24h"
}Responses
{
"id": "batch_example",
"object": "batch",
"endpoint": "/v1/chat/completions",
"input_file_id": "file_example",
"completion_window": "24h",
"status": "in_progress",
"created_at": 1700000000,
"request_counts": {
"total": 100,
"completed": 0,
"failed": 0
}
}Request example
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/batches' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| after | query | string | Optional | — |
| limit | query | integer | Optional | —Example: 20 |
Responses
{
"object": "list",
"data": [
{
"id": "batch_example",
"object": "batch",
"endpoint": "/v1/chat/completions",
"input_file_id": "file_example",
"completion_window": "24h",
"status": "in_progress",
"created_at": 1700000000,
"request_counts": {
"total": 100,
"completed": 0,
"failed": 0
}
}
],
"first_id": "batch_example",
"last_id": "batch_example",
"has_more": false
}Native prepaid batches validate the stored file checksum and strict JSONL before funding. Every item needs a server-owned execution policy for its pinned route and price, including file-upload and batch-create transport bounds. All item reservations commit atomically before provider submission; insufficient aggregate funds return HTTP 402 without submitting a partial batch. Incompatible provider configurations must be split into separate batches. Each submission permits one file upload and one batch create; an ambiguous submission returns batch_submission_recovery_required and retains funding without automatic resubmission. Failed, cancelled or missing item results do not prove zero provider cost and retain funding for reconciliation.
POST /openai/v1/batchesRequest example
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/batches' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"input_file_id": "file_example",
"endpoint": "/v1/chat/completions",
"completion_window": "24h"
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"input_file_id": "file_example",
"endpoint": "/v1/chat/completions",
"completion_window": "24h"
}Responses
{
"id": "batch_example",
"object": "batch",
"endpoint": "/v1/chat/completions",
"input_file_id": "file_example",
"completion_window": "24h",
"status": "in_progress",
"created_at": 1700000000,
"request_counts": {
"total": 100,
"completed": 0,
"failed": 0
}
}Request example
curl \
--request GET \
--url 'https://api.anyint.ai/v1/batches/<batch_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| batch_id | path | string | Required | — |
Responses
{
"id": "batch_example",
"object": "batch",
"endpoint": "/v1/chat/completions",
"input_file_id": "file_example",
"completion_window": "24h",
"status": "in_progress",
"created_at": 1700000000,
"request_counts": {
"total": 100,
"completed": 0,
"failed": 0
}
}Request example
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/batches/<batch_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| batch_id | path | string | Required | — |
Responses
{
"id": "batch_example",
"object": "batch",
"endpoint": "/v1/chat/completions",
"input_file_id": "file_example",
"completion_window": "24h",
"status": "in_progress",
"created_at": 1700000000,
"request_counts": {
"total": 100,
"completed": 0,
"failed": 0
}
}Request example
curl \
--request POST \
--url 'https://api.anyint.ai/v1/batches/<batch_id>/cancel' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| batch_id | path | string | Required | — |
Responses
{
"id": "batch_example",
"object": "batch",
"endpoint": "/v1/chat/completions",
"input_file_id": "file_example",
"completion_window": "24h",
"status": "in_progress",
"created_at": 1700000000,
"request_counts": {
"total": 100,
"completed": 0,
"failed": 0
}
}Request example
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/batches/<batch_id>/cancel' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| batch_id | path | string | Required | — |
Responses
{
"id": "batch_example",
"object": "batch",
"endpoint": "/v1/chat/completions",
"input_file_id": "file_example",
"completion_window": "24h",
"status": "in_progress",
"created_at": 1700000000,
"request_counts": {
"total": 100,
"completed": 0,
"failed": 0
}
}Files
5 endpointsUpload, list, inspect, and download files.
Request example
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/files' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Responses
{
"object": "list",
"data": [
{
"id": "file_example",
"object": "file",
"bytes": 128,
"created_at": 1700000000,
"filename": "document.jsonl",
"purpose": "batch",
"status": "processed"
}
]
}Applies API key IP and requests-per-minute policies before storing content. Uploads are model-independent and do not consume inference quotas. Files expire 30 days after upload unless expires_after sets a shorter lifetime (1 hour to 30 days); expired files are no longer listed or downloadable and are purged. Each tenant may keep at most 10,000 active files totalling 10 GiB.
POST /openai/v1/filesRequest example
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/files' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--form 'file=@path/to/document.jsonl' \
--form 'purpose=batch'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"file": "document.jsonl",
"purpose": "batch"
}Responses
{
"id": "file_example",
"object": "file",
"bytes": 128,
"created_at": 1700000000,
"filename": "document.jsonl",
"purpose": "batch",
"status": "processed"
}Request example
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/files/<file_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| file_id | path | string | Required | — |
Responses
{
"id": "file_example",
"object": "file",
"bytes": 128,
"created_at": 1700000000,
"filename": "document.jsonl",
"purpose": "batch",
"status": "processed"
}Request example
curl \
--request DELETE \
--url 'https://api.anyint.ai/openai/v1/files/<file_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| file_id | path | string | Required | — |
Responses
{
"id": "file_example",
"object": "file",
"deleted": true
}Request example
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/files/<file_id>/content' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/octet-stream'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| file_id | path | string | Required | — |
Responses
<binary>Audio
3 endpointsTranscribe audio, translate audio to English, or synthesize speech.
Native prepaid organizations reserve the greater of customer and provider maximum costs before audio provider dispatch. A missing or mismatched server-owned execution bound returns non-retryable HTTP 503 prepaid_execution_bound_unavailable. Multipart bounds include file sizes and content hashes. Insufficient funds return HTTP 402. Successful responses require the configured billable usage; missing required usage returns HTTP 502 and retains funding. Provider errors or unknown outcomes retain funding for audited recovery. Personal and postpaid audio behavior is preserved.
POST /openai/v1/audio/transcriptionsRequest example
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/audio/transcriptions' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--form 'file=@path/to/audio.wav' \
--form 'model=your-model-id'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"file": "audio.wav",
"model": "your-model-id"
}Responses
{
"text": "Example transcript."
}Native prepaid organizations reserve the greater of customer and provider maximum costs before audio provider dispatch. A missing or mismatched server-owned execution bound returns non-retryable HTTP 503 prepaid_execution_bound_unavailable. Multipart bounds include file sizes and content hashes. Insufficient funds return HTTP 402. Successful responses require the configured billable usage; missing required usage returns HTTP 502 and retains funding. Provider errors or unknown outcomes retain funding for audited recovery. Personal and postpaid audio behavior is preserved.
POST /openai/v1/audio/translationsRequest example
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/audio/translations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--form 'file=@path/to/audio.wav' \
--form 'model=your-model-id'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"file": "audio.wav",
"model": "your-model-id"
}Responses
{
"text": "Example transcript."
}Native prepaid organizations reserve the greater of customer and provider maximum costs before audio provider dispatch. A missing or mismatched server-owned execution bound returns non-retryable HTTP 503 prepaid_execution_bound_unavailable. Multipart bounds include file sizes and content hashes. Insufficient funds return HTTP 402. Successful responses require the configured billable usage; missing required usage returns HTTP 502 and retains funding. Provider errors or unknown outcomes retain funding for audited recovery. Personal and postpaid audio behavior is preserved.
POST /openai/v1/audio/speechRequest example
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/audio/speech' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: audio/mpeg' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"voice": "your-voice-id",
"input": "Welcome to AnyInt Gateway."
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"model": "your-model-id",
"voice": "your-voice-id",
"input": "Welcome to AnyInt Gateway."
}Responses
<binary>Images
4 endpointsGenerate and edit images with OpenAI-compatible requests.
Request example
curl \
--request POST \
--url 'https://api.anyint.ai/v1/images/edits' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--form 'image=@path/to/image.png' \
--form 'model=your-model-id' \
--form 'prompt=Add a soft blue background.'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"image": "image.png",
"model": "your-model-id",
"prompt": "Add a soft blue background."
}Responses
{
"created": 1700000000,
"data": [
{
"b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB"
}
]
}Request example
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/images/edits' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--form 'image=@path/to/image.png' \
--form 'model=your-model-id' \
--form 'prompt=Add a soft blue background.'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"image": "image.png",
"model": "your-model-id",
"prompt": "Add a soft blue background."
}Responses
{
"created": 1700000000,
"data": [
{
"b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB"
}
]
}Request example
curl \
--request POST \
--url 'https://api.anyint.ai/v1/images/generations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"prompt": "A minimal paper sculpture of a cloud",
"n": 1
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"model": "your-model-id",
"prompt": "A minimal paper sculpture of a cloud",
"n": 1
}Responses
{
"created": 1700000000,
"data": [
{
"b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB"
}
]
}Request example
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/images/generations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"prompt": "A minimal paper sculpture of a cloud",
"n": 1
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"model": "your-model-id",
"prompt": "A minimal paper sculpture of a cloud",
"n": 1
}Responses
{
"created": 1700000000,
"data": [
{
"b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB"
}
]
}Models
4 endpointsDiscover models available through each protocol.
Request example
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/models' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Responses
{
"object": "list",
"data": [
{
"id": "your-model-id",
"object": "model",
"created": 1767225600,
"owned_by": "configured-provider"
}
]
}Request example
curl \
--request GET \
--url 'https://api.anyint.ai/v1/models' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Responses
{
"object": "list",
"data": [
{
"id": "your-model-id",
"object": "model",
"created": 1767225600,
"owned_by": "configured-provider"
}
]
}Request example
curl \
--request GET \
--url 'https://api.anyint.ai/anthropic/v1/models' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Responses
{
"data": [
{
"id": "your-model-id",
"type": "model",
"display_name": "Configured model",
"created_at": "2026-01-01T00:00:00.000Z"
}
],
"has_more": false,
"first_id": "your-model-id",
"last_id": "your-model-id"
}Request example
curl \
--request GET \
--url 'https://api.anyint.ai/gemini/v1beta/models' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Responses
{
"models": [
{
"name": "models/your-model-id",
"displayName": "Configured model",
"supportedGenerationMethods": [
"generateContent"
],
"inputTokenLimit": 8192,
"outputTokenLimit": 8192
}
]
}Async Media
23 endpointsCreate and inspect asynchronous image, video, and music jobs.
Seedance accepts active image and video asset:// references, including mixed reference_image and reference_video content. Each reference must belong to the enterprise's current asset library. Incompatible library references return HTTP 400 authorized_asset_provider_mismatch, retryable=false and user_action=simplify_input before routing, task creation or upstream submission. Register the referenced images and videos in the current library and update their references before retrying.
POST /v1/videosRequest example
curl \
--request POST \
--url 'https://api.anyint.ai/v1/videos' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}Responses
{
"id": "task_example",
"taskId": "task_example",
"object": "video",
"status": "queued",
"created_at": 0
}Request example
curl \
--request GET \
--url 'https://api.anyint.ai/v1/videos/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| task_id | path | string | Required | — |
Responses
{
"id": "task_example",
"taskId": "task_example",
"object": "video",
"status": "queued",
"created_at": 0
}Request example
curl \
--request GET \
--url 'https://api.anyint.ai/v1/videos/<task_id>/content' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/octet-stream'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| task_id | path | string | Required | — |
Responses
<binary>Seedance accepts active image and video asset:// references, including mixed reference_image and reference_video content. Each reference must belong to the enterprise's current asset library. Incompatible library references return HTTP 400 authorized_asset_provider_mismatch, retryable=false and user_action=simplify_input before routing, task creation or upstream submission. Register the referenced images and videos in the current library and update their references before retrying.
POST /openai/v1/videosRequest example
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/videos' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}Responses
{
"id": "task_example",
"taskId": "task_example",
"object": "video",
"status": "queued",
"created_at": 0
}Request example
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/videos/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| task_id | path | string | Required | — |
Responses
{
"id": "task_example",
"taskId": "task_example",
"object": "video",
"status": "queued",
"created_at": 0
}Request example
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/videos/<task_id>/content' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/octet-stream'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| task_id | path | string | Required | — |
Responses
<binary>Request example
curl \
--request POST \
--url 'https://api.anyint.ai/v1/audio/generations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}Responses
{
"id": "task_example",
"taskId": "task_example",
"object": "audio",
"status": "queued",
"created_at": 0
}Request example
curl \
--request GET \
--url 'https://api.anyint.ai/v1/audio/generations/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| task_id | path | string | Required | — |
Responses
{
"id": "task_example",
"taskId": "task_example",
"object": "audio",
"status": "queued",
"created_at": 0
}Request example
curl \
--request GET \
--url 'https://api.anyint.ai/v1/audio/generations/<task_id>/content' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/octet-stream'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| task_id | path | string | Required | — |
Responses
<binary>Request example
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/audio/generations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}Responses
{
"id": "task_example",
"taskId": "task_example",
"object": "audio",
"status": "queued",
"created_at": 0
}Request example
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/audio/generations/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| task_id | path | string | Required | — |
Responses
{
"id": "task_example",
"taskId": "task_example",
"object": "audio",
"status": "queued",
"created_at": 0
}Request example
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/audio/generations/<task_id>/content' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/octet-stream'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| task_id | path | string | Required | — |
Responses
<binary>Request example
curl \
--request POST \
--url 'https://api.anyint.ai/v1/async-tasks/image-generations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"prompt": "A minimal paper sculpture of a cloud"
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"model": "your-model-id",
"prompt": "A minimal paper sculpture of a cloud"
}Responses
{
"object": "async_task",
"task": {
"id": "task_example",
"requestId": "req_example",
"tenantId": "tenant_example",
"protocol": "openai",
"taskType": "image_generation",
"status": "submitted",
"input": {
"prompt": "Example prompt"
},
"artifacts": [],
"artifactCount": 0,
"artifact_count": 0,
"billingSessions": [],
"billing_sessions": [],
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
},
"anyint": {
"request_id": "req_example",
"route_decision_id": "route_example"
},
"duplicate": true
}Request example
curl \
--request POST \
--url 'https://api.anyint.ai/v1/async-tasks/video-generations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"prompt": "Slow aerial movement over a quiet coast",
"duration_seconds": 6,
"fps": 24
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"model": "your-model-id",
"prompt": "Slow aerial movement over a quiet coast",
"duration_seconds": 6,
"fps": 24
}Responses
{
"object": "async_task",
"task": {
"id": "task_example",
"requestId": "req_example",
"tenantId": "tenant_example",
"protocol": "openai",
"taskType": "video_generation",
"status": "submitted",
"input": {
"prompt": "Example prompt"
},
"artifacts": [],
"artifactCount": 0,
"artifact_count": 0,
"billingSessions": [],
"billing_sessions": [],
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
},
"anyint": {
"request_id": "req_example",
"route_decision_id": "route_example"
},
"duplicate": true
}Request example
curl \
--request POST \
--url 'https://api.anyint.ai/v1/videos/generations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"prompt": "Slow aerial movement over a quiet coast",
"duration_seconds": 6,
"fps": 24
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"model": "your-model-id",
"prompt": "Slow aerial movement over a quiet coast",
"duration_seconds": 6,
"fps": 24
}Responses
{
"object": "async_task",
"task": {
"id": "task_example",
"requestId": "req_example",
"tenantId": "tenant_example",
"protocol": "openai",
"taskType": "video_generation",
"status": "submitted",
"input": {
"prompt": "Example prompt"
},
"artifacts": [],
"artifactCount": 0,
"artifact_count": 0,
"billingSessions": [],
"billing_sessions": [],
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
},
"anyint": {
"request_id": "req_example",
"route_decision_id": "route_example"
},
"duplicate": true
}Request example
curl \
--request POST \
--url 'https://api.anyint.ai/v1/async-tasks/music-generations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"prompt": "Warm ambient music with soft piano",
"duration_seconds": 30
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"model": "your-model-id",
"prompt": "Warm ambient music with soft piano",
"duration_seconds": 30
}Responses
{
"object": "async_task",
"task": {
"id": "task_example",
"requestId": "req_example",
"tenantId": "tenant_example",
"protocol": "openai",
"taskType": "music_generation",
"status": "submitted",
"input": {
"prompt": "Example prompt"
},
"artifacts": [],
"artifactCount": 0,
"artifact_count": 0,
"billingSessions": [],
"billing_sessions": [],
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
},
"anyint": {
"request_id": "req_example",
"route_decision_id": "route_example"
},
"duplicate": true
}Request example
curl \
--request POST \
--url 'https://api.anyint.ai/v1/music/generations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"prompt": "Warm ambient music with soft piano",
"duration_seconds": 30
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"model": "your-model-id",
"prompt": "Warm ambient music with soft piano",
"duration_seconds": 30
}Responses
{
"object": "async_task",
"task": {
"id": "task_example",
"requestId": "req_example",
"tenantId": "tenant_example",
"protocol": "openai",
"taskType": "music_generation",
"status": "submitted",
"input": {
"prompt": "Example prompt"
},
"artifacts": [],
"artifactCount": 0,
"artifact_count": 0,
"billingSessions": [],
"billing_sessions": [],
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
},
"anyint": {
"request_id": "req_example",
"route_decision_id": "route_example"
},
"duplicate": true
}Request example
curl \
--request GET \
--url 'https://api.anyint.ai/v1/async-tasks' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Responses
{
"object": "list",
"data": [
{
"id": "task_example",
"requestId": "req_example",
"tenantId": "tenant_example",
"protocol": "openai",
"taskType": "image_generation",
"status": "queued",
"input": {
"prompt": "Example prompt"
},
"artifacts": [],
"artifactCount": 0,
"artifact_count": 0,
"billingSessions": [],
"billing_sessions": [],
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}
]
}Request example
curl \
--request GET \
--url 'https://api.anyint.ai/v1/async-tasks/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| task_id | path | string | Required | — |
Responses
{
"object": "async_task",
"task": {
"id": "task_example",
"requestId": "req_example",
"tenantId": "tenant_example",
"protocol": "openai",
"taskType": "image_generation",
"status": "queued",
"input": {
"prompt": "Example prompt"
},
"artifacts": [],
"artifactCount": 0,
"artifact_count": 0,
"billingSessions": [],
"billing_sessions": [],
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}
}Request example
curl \
--request GET \
--url 'https://api.anyint.ai/v1/tasks/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| task_id | path | string | Required | — |
Responses
{
"object": "generation_task",
"task": {
"id": "task_example",
"requestId": "req_example",
"tenantId": "tenant_example",
"protocol": "openai",
"taskType": "image_generation",
"status": "queued",
"input": {
"prompt": "Example prompt"
},
"artifacts": [],
"artifactCount": 0,
"artifact_count": 0,
"billingSessions": [],
"billing_sessions": [],
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}
}Request example
curl \
--request POST \
--url 'https://api.anyint.ai/v1/tasks/<task_id>/cancel' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| task_id | path | string | Required | — |
Responses
{
"object": "generation_task",
"task": {
"id": "task_example",
"requestId": "req_example",
"tenantId": "tenant_example",
"protocol": "openai",
"taskType": "image_generation",
"status": "queued",
"input": {
"prompt": "Example prompt"
},
"artifacts": [],
"artifactCount": 0,
"artifact_count": 0,
"billingSessions": [],
"billing_sessions": [],
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}
}Request example
curl \
--request POST \
--url 'https://api.anyint.ai/v1/async-tasks/<task_id>/cancel' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| task_id | path | string | Required | — |
Responses
{
"object": "generation_task",
"task": {
"id": "task_example",
"requestId": "req_example",
"tenantId": "tenant_example",
"protocol": "openai",
"taskType": "image_generation",
"status": "queued",
"input": {
"prompt": "Example prompt"
},
"artifacts": [],
"artifactCount": 0,
"artifact_count": 0,
"billingSessions": [],
"billing_sessions": [],
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}
}Request example
curl \
--request GET \
--url 'https://api.anyint.ai/v1/async-tasks/<task_id>/artifacts/<artifact_id>?tenant_id=<tenant_id>&expires_at=<expires_at>&signature=<signature>' \
--header 'Accept: application/octet-stream'Authentication
No authentication required
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| task_id | path | string | Required | — |
| artifact_id | path | string | Required | — |
| tenant_id | query | string | Required | — |
| expires_at | query | integer | Required | — |
| signature | query | string | Required | — |
Responses
<binary>Anthropic Messages
2 endpointsUse Anthropic-native messages, token counting, and model discovery.
When billing is enabled, built-in web search declared in tools or Responses input.additional_tools requires a compiled price rule covering web_search_queries and the request dimensions. Namespace tool declarations are checked without treating client functions as built-in search. Missing coverage returns HTTP 503 search_tool_pricing_not_configured before initial funding reservation; each actual candidate, including fallback and supply-tier routes, is checked again before provider dispatch. Client function tools are unaffected.
POST /anthropic/v1/messagesRequest example
curl \
--request POST \
--url 'https://api.anyint.ai/anthropic/v1/messages' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"max_tokens": 256,
"messages": [
{
"role": "user",
"content": "Explain edge computing briefly."
}
]
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | Optional | Opt in to durable tenant-scoped execution deduplication. Reuse only with the identical request body and API key. Completed or possibly dispatched requests never expire into another execution, including after Redis loss. Upstream errors or settlement rollback after dispatch require a new message ID for another execution; failures before dispatch may retry the same ID. |
| X-Resume-Message-Id | header | string | Optional | Replay a previously generated SSE stream under the original API key and identical request body. This request does not dispatch or bill the provider. Cache retention is 10 minutes and total output is limited to 4 MiB; interrupted generations require a new message ID for continuation. |
| X-Resume-From-Offset | header | integer | Optional | Number of complete SSE events already consumed, matching the last SSE id. Starts at 0; UTF-8 bytes, tokens and characters are not valid units. Takes precedence over Last-Event-ID. |
| Last-Event-ID | header | integer | Optional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
Request body
Required{
"model": "your-model-id",
"max_tokens": 256,
"messages": [
{
"role": "user",
"content": "Explain edge computing briefly."
}
]
}Responses
{
"id": "msg_example",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "Edge computing runs workloads near the data source."
}
]
}Request example
curl \
--request POST \
--url 'https://api.anyint.ai/anthropic/v1/messages/count_tokens' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Request body
Required{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}Responses
{
"input_tokens": 12
}Gemini Content
4 endpointsUse Gemini-native content generation and streaming.
Gemini 4 Argon on the Gemini Developer API supports Standard inference only. Omit serviceTier/service_tier or set it to standard; other values return HTTP 400 before upstream dispatch. When billing is enabled, built-in web search declared in tools or Responses input.additional_tools requires a compiled price rule covering web_search_queries and the request dimensions. Namespace tool declarations are checked without treating client functions as built-in search. Missing coverage returns HTTP 503 search_tool_pricing_not_configured before initial funding reservation; each actual candidate, including fallback and supply-tier routes, is checked again before provider dispatch. Client function tools are unaffected.
POST /gemini/v1beta/models/{model}:generateContentRequest example
curl \
--request POST \
--url 'https://api.anyint.ai/gemini/v1beta/models/<model>:generateContent' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| model | path | string | Required | — |
| X-Client-Message-Id | header | string | Optional | Opt in to durable tenant-scoped execution deduplication. Reuse only with the identical request body and API key. Completed or possibly dispatched requests never expire into another execution, including after Redis loss. Upstream errors or settlement rollback after dispatch require a new message ID for another execution; failures before dispatch may retry the same ID. |
| X-Resume-Message-Id | header | string | Optional | Replay a previously generated SSE stream under the original API key and identical request body. This request does not dispatch or bill the provider. Cache retention is 10 minutes and total output is limited to 4 MiB; interrupted generations require a new message ID for continuation. |
| X-Resume-From-Offset | header | integer | Optional | Number of complete SSE events already consumed, matching the last SSE id. Starts at 0; UTF-8 bytes, tokens and characters are not valid units. Takes precedence over Last-Event-ID. |
| Last-Event-ID | header | integer | Optional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
Request body
Required{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}Responses
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "Edge computing reduces latency."
}
]
}
}
]
}Gemini 4 Argon on the Gemini Developer API supports Standard inference only. Omit serviceTier/service_tier or set it to standard; other values return HTTP 400 before upstream dispatch. When billing is enabled, built-in web search declared in tools or Responses input.additional_tools requires a compiled price rule covering web_search_queries and the request dimensions. Namespace tool declarations are checked without treating client functions as built-in search. Missing coverage returns HTTP 503 search_tool_pricing_not_configured before initial funding reservation; each actual candidate, including fallback and supply-tier routes, is checked again before provider dispatch. Client function tools are unaffected.
POST /gemini/v1beta/models/{model}:streamGenerateContentRequest example
curl \
--request POST \
--url 'https://api.anyint.ai/gemini/v1beta/models/<model>:streamGenerateContent' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: text/event-stream' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| model | path | string | Required | — |
| alt | query | string | Optional | — |
| X-Client-Message-Id | header | string | Optional | Opt in to durable tenant-scoped execution deduplication. Reuse only with the identical request body and API key. Completed or possibly dispatched requests never expire into another execution, including after Redis loss. Upstream errors or settlement rollback after dispatch require a new message ID for another execution; failures before dispatch may retry the same ID. |
| X-Resume-Message-Id | header | string | Optional | Replay a previously generated SSE stream under the original API key and identical request body. This request does not dispatch or bill the provider. Cache retention is 10 minutes and total output is limited to 4 MiB; interrupted generations require a new message ID for continuation. |
| X-Resume-From-Offset | header | integer | Optional | Number of complete SSE events already consumed, matching the last SSE id. Starts at 0; UTF-8 bytes, tokens and characters are not valid units. Takes precedence over Last-Event-ID. |
| Last-Event-ID | header | integer | Optional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
Request body
Required{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}Responses
data: {"candidates":[{"content":{"role":"model","parts":[{"text":"Edge computing reduces latency."}]}}]}
Gemini 4 Argon on the Gemini Developer API supports Standard inference only. Omit serviceTier/service_tier or set it to standard; other values return HTTP 400 before upstream dispatch. When billing is enabled, built-in web search declared in tools or Responses input.additional_tools requires a compiled price rule covering web_search_queries and the request dimensions. Namespace tool declarations are checked without treating client functions as built-in search. Missing coverage returns HTTP 503 search_tool_pricing_not_configured before initial funding reservation; each actual candidate, including fallback and supply-tier routes, is checked again before provider dispatch. Client function tools are unaffected.
POST /gemini/v1beta/models/{model}/generateContentRequest example
curl \
--request POST \
--url 'https://api.anyint.ai/gemini/v1beta/models/<model>/generateContent' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| model | path | string | Required | — |
| X-Client-Message-Id | header | string | Optional | Opt in to durable tenant-scoped execution deduplication. Reuse only with the identical request body and API key. Completed or possibly dispatched requests never expire into another execution, including after Redis loss. Upstream errors or settlement rollback after dispatch require a new message ID for another execution; failures before dispatch may retry the same ID. |
| X-Resume-Message-Id | header | string | Optional | Replay a previously generated SSE stream under the original API key and identical request body. This request does not dispatch or bill the provider. Cache retention is 10 minutes and total output is limited to 4 MiB; interrupted generations require a new message ID for continuation. |
| X-Resume-From-Offset | header | integer | Optional | Number of complete SSE events already consumed, matching the last SSE id. Starts at 0; UTF-8 bytes, tokens and characters are not valid units. Takes precedence over Last-Event-ID. |
| Last-Event-ID | header | integer | Optional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
Request body
Required{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}Responses
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "Edge computing reduces latency."
}
]
}
}
]
}Gemini 4 Argon on the Gemini Developer API supports Standard inference only. Omit serviceTier/service_tier or set it to standard; other values return HTTP 400 before upstream dispatch. When billing is enabled, built-in web search declared in tools or Responses input.additional_tools requires a compiled price rule covering web_search_queries and the request dimensions. Namespace tool declarations are checked without treating client functions as built-in search. Missing coverage returns HTTP 503 search_tool_pricing_not_configured before initial funding reservation; each actual candidate, including fallback and supply-tier routes, is checked again before provider dispatch. Client function tools are unaffected.
POST /gemini/v1beta/models/{model}/streamGenerateContentRequest example
curl \
--request POST \
--url 'https://api.anyint.ai/gemini/v1beta/models/<model>/streamGenerateContent' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: text/event-stream' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| model | path | string | Required | — |
| alt | query | string | Optional | — |
| X-Client-Message-Id | header | string | Optional | Opt in to durable tenant-scoped execution deduplication. Reuse only with the identical request body and API key. Completed or possibly dispatched requests never expire into another execution, including after Redis loss. Upstream errors or settlement rollback after dispatch require a new message ID for another execution; failures before dispatch may retry the same ID. |
| X-Resume-Message-Id | header | string | Optional | Replay a previously generated SSE stream under the original API key and identical request body. This request does not dispatch or bill the provider. Cache retention is 10 minutes and total output is limited to 4 MiB; interrupted generations require a new message ID for continuation. |
| X-Resume-From-Offset | header | integer | Optional | Number of complete SSE events already consumed, matching the last SSE id. Starts at 0; UTF-8 bytes, tokens and characters are not valid units. Takes precedence over Last-Event-ID. |
| Last-Event-ID | header | integer | Optional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
Request body
Required{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}Responses
data: {"candidates":[{"content":{"role":"model","parts":[{"text":"Edge computing reduces latency."}]}}]}
Knowledge Crystallization
1 endpointExport crystallized AI conversation events for local Markdown notes sync.
Request example
curl \
--request GET \
--url 'https://api.anyint.ai/v1/knowledge/export' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. In organization tenants, subscription funding is available only to the subscription-bound key or keys owned by the same holder; other members use enterprise wallet or credit admission. Personal-tenant subscription credit priority is unchanged. While explicitly enabled session compatibility remains active, a verified legacy or native AnyInt identity session may select an owned personal-account key with x-anyint-gateway-key-id (1–255 characters; imported source IDs remain accepted). Native model execution requires this explicit selector; retained read-only metadata may use the default owned key. Missing, disabled, expired, or foreign selections fail without falling back to another key. API key credentials retain precedence over the session-only selector.Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| cursor | query | string | Optional | — |
| limit | query | integer | Optional | — |
| collection_id | query | string | Optional | — |
Responses
{
"schema_version": "1.0.0",
"collection_id": "default",
"collection_generation": 1,
"events": [],
"next_cursor": null,
"has_more": false,
"snapshot_upper_bound": "2026-09-30T10:00:00.000Z",
"pending_summary": {
"pending_event_count": 0
},
"status": "OK"
}