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.
71 endpoints
Chat
2 endpointsCreate OpenAI-compatible conversational responses.
Request 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. 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": "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"
}
]
}Request 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. 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": "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.
Request 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. 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": "Write a short welcome message."
}Responses
{
"id": "resp_example",
"object": "response",
"status": "completed"
}Request 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. 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": "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. 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": "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. 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": "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. 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. 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. 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. 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. 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
}Request 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. 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. 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
}Request 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. 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. 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. 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. 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. 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. 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"
}
]
}Request 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. 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. 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. 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. 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.
Request 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. 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."
}Request 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. 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."
}Request 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. 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. 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. 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. 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. 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. 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. 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. 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. 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
26 endpointsCreate and inspect asynchronous image, video, and music jobs.
Request 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. 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. 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. 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/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. 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. 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. 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. 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. 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. 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. 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. 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. 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/suno/generate' \
--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. 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/suno/query/task?taskId=<taskId>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. 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 |
|---|---|---|---|---|
| taskId | query | 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/doubao/videos/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Authentication
http · bearerDeveloper API key passed as Bearer token. 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 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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.
Request 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. 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",
"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. 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.
Request 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. 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 | — |
Request body
Required{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}Responses
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "Edge computing reduces latency."
}
]
}
}
]
}Request 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. 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 | — |
Request body
Required{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}Responses
data: {"candidates":[{"content":{"role":"model","parts":[{"text":"Edge computing reduces latency."}]}}]}
Request 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. 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 | — |
Request body
Required{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}Responses
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "Edge computing reduces latency."
}
]
}
}
]
}Request 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. 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 | — |
Request body
Required{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}Responses
data: {"candidates":[{"content":{"role":"model","parts":[{"text":"Edge computing reduces latency."}]}}]}