Referência da API
Use um gateway e chave de API em fluxos de trabalho de mídia compatíveis com OpenAI, Anthropic, Gemini e assíncronos.
- Servidor
https://api.anyint.cloudA origem do AnyInt Gateway que atende a este documento OpenAPI.
81 endpoints
Chat
2 endpointsCriar respostas conversacionais compatíveis com a OpenAI.
Chame este endpoint para executar a operação descrita.
POST /openai/v1/chat/completionsExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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."
}
]
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | Opcional | 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 | Opcional | 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 | Opcional | 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 | Opcional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Explain edge computing in 2 sentences."
}
]
}Respostas
{
"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"
}
]
}Chame este endpoint para executar a operação descrita.
POST /v1/chat/completionsExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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."
}
]
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | Opcional | 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 | Opcional | 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 | Opcional | 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 | Opcional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Explain edge computing in 2 sentences."
}
]
}Respostas
{
"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"
}
]
}Respostas
2 endpointsCriar respostas com o formato da API de Respostas da OpenAI.
Chame este endpoint para executar a operação descrita.
POST /openai/v1/responsesExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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."
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | Opcional | 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 | Opcional | 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 | Opcional | 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 | Opcional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-id",
"input": "Write a short welcome message."
}Respostas
{
"id": "resp_example",
"object": "response",
"status": "completed"
}Chame este endpoint para executar a operação descrita.
POST /v1/responsesExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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."
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | Opcional | 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 | Opcional | 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 | Opcional | 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 | Opcional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-id",
"input": "Write a short welcome message."
}Respostas
{
"id": "resp_example",
"object": "response",
"status": "completed"
}Mensagens Anthropic
4 endpointsUse mensagens nativas do Anthropic, contagem de tokens e descoberta de modelos.
Chame este endpoint para executar a operação descrita.
POST /anthropic/v1/messagesExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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."
}
]
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | Opcional | 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 | Opcional | 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 | Opcional | 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 | Opcional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-id",
"max_tokens": 256,
"messages": [
{
"role": "user",
"content": "Explain edge computing briefly."
}
]
}Respostas
{
"id": "msg_example",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "Edge computing runs workloads near the data source."
}
]
}Exemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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"
}
]
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}Respostas
{
"input_tokens": 12
}Chame este endpoint para executar a operação descrita.
POST /v1/messagesExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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."
}
]
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | Opcional | 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 | Opcional | 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 | Opcional | 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 | Opcional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-id",
"max_tokens": 256,
"messages": [
{
"role": "user",
"content": "Explain edge computing briefly."
}
]
}Respostas
{
"id": "msg_example",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "Edge computing runs workloads near the data source."
}
]
}Exemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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"
}
]
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}Respostas
{
"input_tokens": 12
}Conteúdo Gemini
8 endpointsUse geração e streaming de conteúdo nativos do Gemini.
Chame este endpoint para executar a operação descrita.
POST /gemini/v1beta/models/{model}/generateContentExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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."
}
]
}
]
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| model | path | string | Obrigatório | — |
| X-Client-Message-Id | header | string | Opcional | 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 | Opcional | 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 | Opcional | 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 | Opcional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}Respostas
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "Edge computing reduces latency."
}
]
}
}
]
}Chame este endpoint para executar a operação descrita.
POST /gemini/v1beta/models/{model}/streamGenerateContentExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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."
}
]
}
]
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| model | path | string | Obrigatório | — |
| alt | query | string | Opcional | — |
| X-Client-Message-Id | header | string | Opcional | 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 | Opcional | 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 | Opcional | 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 | Opcional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}Respostas
data: {"candidates":[{"content":{"role":"model","parts":[{"text":"Edge computing reduces latency."}]}}]}
Chame este endpoint para executar a operação descrita.
POST /gemini/v1beta/models/{model}:generateContentExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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."
}
]
}
]
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| model | path | string | Obrigatório | — |
| X-Client-Message-Id | header | string | Opcional | 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 | Opcional | 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 | Opcional | 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 | Opcional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}Respostas
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "Edge computing reduces latency."
}
]
}
}
]
}Chame este endpoint para executar a operação descrita.
POST /gemini/v1beta/models/{model}:streamGenerateContentExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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."
}
]
}
]
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| model | path | string | Obrigatório | — |
| alt | query | string | Opcional | — |
| X-Client-Message-Id | header | string | Opcional | 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 | Opcional | 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 | Opcional | 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 | Opcional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}Respostas
data: {"candidates":[{"content":{"role":"model","parts":[{"text":"Edge computing reduces latency."}]}}]}
Chame este endpoint para executar a operação descrita.
POST /v1beta/models/{model}/generateContentExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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."
}
]
}
]
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| model | path | string | Obrigatório | — |
| X-Client-Message-Id | header | string | Opcional | 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 | Opcional | 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 | Opcional | 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 | Opcional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}Respostas
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "Edge computing reduces latency."
}
]
}
}
]
}Chame este endpoint para executar a operação descrita.
POST /v1beta/models/{model}/streamGenerateContentExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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."
}
]
}
]
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| model | path | string | Obrigatório | — |
| alt | query | string | Opcional | — |
| X-Client-Message-Id | header | string | Opcional | 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 | Opcional | 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 | Opcional | 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 | Opcional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}Respostas
data: {"candidates":[{"content":{"role":"model","parts":[{"text":"Edge computing reduces latency."}]}}]}
Chame este endpoint para executar a operação descrita.
POST /v1beta/models/{model}:generateContentExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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."
}
]
}
]
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| model | path | string | Obrigatório | — |
| X-Client-Message-Id | header | string | Opcional | 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 | Opcional | 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 | Opcional | 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 | Opcional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}Respostas
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "Edge computing reduces latency."
}
]
}
}
]
}Chame este endpoint para executar a operação descrita.
POST /v1beta/models/{model}:streamGenerateContentExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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."
}
]
}
]
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| model | path | string | Obrigatório | — |
| alt | query | string | Opcional | — |
| X-Client-Message-Id | header | string | Opcional | 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 | Opcional | 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 | Opcional | 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 | Opcional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}Respostas
data: {"candidates":[{"content":{"role":"model","parts":[{"text":"Edge computing reduces latency."}]}}]}
Modelos
5 endpointsDescubra modelos disponíveis em cada protocolo.
Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/anthropic/v1/models' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"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"
}Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/gemini/v1beta/models' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"models": [
{
"name": "models/your-model-id",
"displayName": "Configured model",
"supportedGenerationMethods": [
"generateContent"
],
"inputTokenLimit": 8192,
"outputTokenLimit": 8192
}
]
}Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/openai/v1/models' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"object": "list",
"data": [
{
"id": "your-model-id",
"object": "model",
"created": 1767225600,
"owned_by": "configured-provider"
}
]
}Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/models' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"object": "list",
"data": [
{
"id": "your-model-id",
"object": "model",
"created": 1767225600,
"owned_by": "configured-provider"
}
]
}Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/v1beta/models' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "Edge computing reduces latency."
}
]
}
}
]
}Embeddings
2 endpointsCriar embeddings vetoriais a partir de entrada de texto.
Exemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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"
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-id",
"input": "A calm ocean at dawn"
}Respostas
{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [
0.012,
-0.008,
0.021
]
}
]
}Exemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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"
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-id",
"input": "A calm ocean at dawn"
}Respostas
{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [
0.012,
-0.008,
0.021
]
}
]
}Imagens
5 endpointsGenerate and edit images with OpenAI-compatible requests.
Accepts multipart uploaded images or nonstreaming JSON URL inputs. JSON requires model, prompt and 1-16 images with image_url; mask may contain one image_url. URL inputs use the selected upstream's native JSON Images API, so that channel must support URL edits. Model permissions, enterprise channel selection, funding and settlement apply to both inputs. URLs must use public HTTPS without embedded credentials; the gateway does not download them. Other native JSON parameters are preserved. gpt-image-2 defaults quality to medium. Malformed URL inputs, missing images, unsupported streaming, invalid image count and invalid quality return HTTP 400 before funding or provider dispatch.
POST /openai/v1/images/editsExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/openai/v1/images/edits' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"prompt": "Combine these reference images on a soft blue background.",
"images": [
{
"image_url": "https://cdn.example.com/reference-1.png"
},
{
"image_url": "https://cdn.example.com/reference-2.png"
}
]
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-id",
"prompt": "Combine these reference images on a soft blue background.",
"images": [
{
"image_url": "https://cdn.example.com/reference-1.png"
},
{
"image_url": "https://cdn.example.com/reference-2.png"
}
]
}Respostas
{
"created": 1700000000,
"data": [
{
"b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB"
}
]
}Accepts multipart uploaded images or nonstreaming JSON URL inputs. JSON requires model, prompt and 1-16 images with image_url; mask may contain one image_url. URL inputs use the selected upstream's native JSON Images API, so that channel must support URL edits. Model permissions, enterprise channel selection, funding and settlement apply to both inputs. URLs must use public HTTPS without embedded credentials; the gateway does not download them. Other native JSON parameters are preserved. gpt-image-2 defaults quality to medium. Malformed URL inputs, missing images, unsupported streaming, invalid image count and invalid quality return HTTP 400 before funding or provider dispatch.
POST /openai/v1/images/generationsExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-id",
"prompt": "A minimal paper sculpture of a cloud",
"n": 1
}Respostas
{
"created": 1700000000,
"data": [
{
"b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB"
}
]
}Accepts multipart uploaded images or nonstreaming JSON URL inputs. JSON requires model, prompt and 1-16 images with image_url; mask may contain one image_url. URL inputs use the selected upstream's native JSON Images API, so that channel must support URL edits. Model permissions, enterprise channel selection, funding and settlement apply to both inputs. URLs must use public HTTPS without embedded credentials; the gateway does not download them. Other native JSON parameters are preserved. gpt-image-2 defaults quality to medium. Malformed URL inputs, missing images, unsupported streaming, invalid image count and invalid quality return HTTP 400 before funding or provider dispatch.
POST /v1/images/editsExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/v1/images/edits' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"prompt": "Combine these reference images on a soft blue background.",
"images": [
{
"image_url": "https://cdn.example.com/reference-1.png"
},
{
"image_url": "https://cdn.example.com/reference-2.png"
}
]
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-id",
"prompt": "Combine these reference images on a soft blue background.",
"images": [
{
"image_url": "https://cdn.example.com/reference-1.png"
},
{
"image_url": "https://cdn.example.com/reference-2.png"
}
]
}Respostas
{
"created": 1700000000,
"data": [
{
"b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB"
}
]
}Accepts multipart uploaded images or nonstreaming JSON URL inputs. JSON requires model, prompt and 1-16 images with image_url; mask may contain one image_url. URL inputs use the selected upstream's native JSON Images API, so that channel must support URL edits. Model permissions, enterprise channel selection, funding and settlement apply to both inputs. URLs must use public HTTPS without embedded credentials; the gateway does not download them. Other native JSON parameters are preserved. gpt-image-2 defaults quality to medium. Malformed URL inputs, missing images, unsupported streaming, invalid image count and invalid quality return HTTP 400 before funding or provider dispatch.
POST /v1/images/generationsExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-id",
"prompt": "A minimal paper sculpture of a cloud",
"n": 1
}Respostas
{
"created": 1700000000,
"data": [
{
"b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB"
}
]
}Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/images/artifacts?key=<key>&tenant_id=<tenant_id>&mime_type=<mime_type>&expires_at=<expires_at>&signature=<signature>' \
--header 'Accept: application/octet-stream'Autenticação
Nenhuma autenticação necessária
Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| key | query | string | Obrigatório | — |
| tenant_id | query | string | Obrigatório | — |
| mime_type | query | string | Obrigatório | — |
| expires_at | query | integer | Obrigatório | — |
| signature | query | string | Obrigatório | — |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
<binary>Áudio
3 endpointsTranscrever áudio, traduzir áudio para inglês ou sintetizar fala.
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/speechExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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."
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-id",
"voice": "your-voice-id",
"input": "Welcome to AnyInt Gateway."
}Respostas
<binary>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/transcriptionsExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"file": "audio.wav",
"model": "your-model-id"
}Respostas
{
"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/translationsExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"file": "audio.wav",
"model": "your-model-id"
}Respostas
{
"text": "Example transcript."
}Mídia Assíncrona
23 endpointsCriar e inspecionar trabalhos assíncronos de imagem, vídeo e música.
Exemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}Respostas
{
"id": "task_example",
"taskId": "task_example",
"object": "audio",
"status": "queued",
"created_at": 0
}Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/openai/v1/audio/generations/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| task_id | path | string | Obrigatório | — |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"id": "task_example",
"taskId": "task_example",
"object": "audio",
"status": "queued",
"created_at": 0
}Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/openai/v1/audio/generations/<task_id>/content' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/octet-stream'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| task_id | path | string | Obrigatório | — |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
<binary>O Seedance aceita referências asset:// ativas de imagens e vídeos, incluindo conteúdo misto de reference_image e reference_video. Cada referência deve pertencer à biblioteca de ativos atual da empresa. Referências a bibliotecas incompatíveis retornam HTTP 400 authorized_asset_provider_mismatch, retryable=false e user_action=simplify_input antes do roteamento, da criação da tarefa ou do envio ao upstream. Registre as imagens e os vídeos referenciados na biblioteca atual e atualize suas referências antes de tentar novamente.
POST /openai/v1/videosExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}Respostas
{
"id": "task_example",
"taskId": "task_example",
"object": "video",
"status": "queued",
"created_at": 0
}Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/openai/v1/videos/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| task_id | path | string | Obrigatório | — |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"id": "task_example",
"taskId": "task_example",
"object": "video",
"status": "queued",
"created_at": 0
}Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/openai/v1/videos/<task_id>/content' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/octet-stream'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| task_id | path | string | Obrigatório | — |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
<binary>Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/async-tasks' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"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"
}
]
}Exemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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"
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-id",
"prompt": "A minimal paper sculpture of a cloud"
}Respostas
{
"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
}Exemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-id",
"prompt": "Warm ambient music with soft piano",
"duration_seconds": 30
}Respostas
{
"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
}Exemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-id",
"prompt": "Slow aerial movement over a quiet coast",
"duration_seconds": 6,
"fps": 24
}Respostas
{
"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
}Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/async-tasks/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| task_id | path | string | Obrigatório | — |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"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"
}
}Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/async-tasks/<task_id>/artifacts/<artifact_id>?tenant_id=<tenant_id>&expires_at=<expires_at>&signature=<signature>' \
--header 'Accept: application/octet-stream'Autenticação
Nenhuma autenticação necessária
Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| task_id | path | string | Obrigatório | — |
| artifact_id | path | string | Obrigatório | — |
| tenant_id | query | string | Obrigatório | — |
| expires_at | query | integer | Obrigatório | — |
| signature | query | string | Obrigatório | — |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
<binary>Exemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/v1/async-tasks/<task_id>/cancel' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| task_id | path | string | Obrigatório | — |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"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"
}
}Exemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}Respostas
{
"id": "task_example",
"taskId": "task_example",
"object": "audio",
"status": "queued",
"created_at": 0
}Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/audio/generations/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| task_id | path | string | Obrigatório | — |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"id": "task_example",
"taskId": "task_example",
"object": "audio",
"status": "queued",
"created_at": 0
}Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/audio/generations/<task_id>/content' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/octet-stream'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| task_id | path | string | Obrigatório | — |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
<binary>Exemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-id",
"prompt": "Warm ambient music with soft piano",
"duration_seconds": 30
}Respostas
{
"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
}Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/tasks/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| task_id | path | string | Obrigatório | — |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"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"
}
}Exemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/v1/tasks/<task_id>/cancel' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| task_id | path | string | Obrigatório | — |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"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"
}
}O Seedance aceita referências asset:// ativas de imagens e vídeos, incluindo conteúdo misto de reference_image e reference_video. Cada referência deve pertencer à biblioteca de ativos atual da empresa. Referências a bibliotecas incompatíveis retornam HTTP 400 authorized_asset_provider_mismatch, retryable=false e user_action=simplify_input antes do roteamento, da criação da tarefa ou do envio ao upstream. Registre as imagens e os vídeos referenciados na biblioteca atual e atualize suas referências antes de tentar novamente.
POST /v1/videosExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}Respostas
{
"id": "task_example",
"taskId": "task_example",
"object": "video",
"status": "queued",
"created_at": 0
}Exemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-id",
"prompt": "Slow aerial movement over a quiet coast",
"duration_seconds": 6,
"fps": 24
}Respostas
{
"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
}Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/videos/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| task_id | path | string | Obrigatório | — |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"id": "task_example",
"taskId": "task_example",
"object": "video",
"status": "queued",
"created_at": 0
}Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/videos/<task_id>/content' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/octet-stream'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| task_id | path | string | Obrigatório | — |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
<binary>Arquivos
5 endpointsCarregar, listar, inspecionar e baixar arquivos.
Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/openai/v1/files' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"object": "list",
"data": [
{
"id": "file_example",
"object": "file",
"bytes": 128,
"created_at": 1700000000,
"filename": "document.jsonl",
"purpose": "batch",
"status": "processed"
}
]
}Aplica as políticas de IP e de solicitações por minuto da API key antes de armazenar o conteúdo. Os uploads independem do modelo e não consomem cotas de inferência. Os arquivos expiram 30 dias após o upload, a menos que expires_after defina um prazo menor (de 1 hora a 30 dias); arquivos expirados deixam de ser listados ou baixados e são removidos. Cada tenant pode manter no máximo 10.000 arquivos ativos, totalizando 10 GiB.
POST /openai/v1/filesExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/openai/v1/files' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--form 'file=@path/to/document.jsonl' \
--form 'purpose=batch'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"file": "document.jsonl",
"purpose": "batch"
}Respostas
{
"id": "file_example",
"object": "file",
"bytes": 128,
"created_at": 1700000000,
"filename": "document.jsonl",
"purpose": "batch",
"status": "processed"
}Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/openai/v1/files/<file_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| file_id | path | string | Obrigatório | — |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"id": "file_example",
"object": "file",
"bytes": 128,
"created_at": 1700000000,
"filename": "document.jsonl",
"purpose": "batch",
"status": "processed"
}Exemplo de solicitação
curl \
--request DELETE \
--url 'https://api.anyint.cloud/openai/v1/files/<file_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| file_id | path | string | Obrigatório | — |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"id": "file_example",
"object": "file",
"deleted": true
}Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/openai/v1/files/<file_id>/content' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/octet-stream'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| file_id | path | string | Obrigatório | — |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
<binary>Lotes
8 endpointsEnvie lotes JSONL nativos do provedor quando o armazenamento de objetos estiver habilitado para a implantação.
Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/openai/v1/batches' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| after | query | string | Opcional | — |
| limit | query | integer | Opcional | —Exemplo: 20 |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"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/batchesExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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"
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Corpo da solicitação
Obrigatório{
"input_file_id": "file_example",
"endpoint": "/v1/chat/completions",
"completion_window": "24h"
}Respostas
{
"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
}
}Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/openai/v1/batches/<batch_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| batch_id | path | string | Obrigatório | — |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"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
}
}Exemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/openai/v1/batches/<batch_id>/cancel' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| batch_id | path | string | Obrigatório | — |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"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
}
}Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/batches' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| after | query | string | Opcional | — |
| limit | query | integer | Opcional | —Exemplo: 20 |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"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/batchesExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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"
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Corpo da solicitação
Obrigatório{
"input_file_id": "file_example",
"endpoint": "/v1/chat/completions",
"completion_window": "24h"
}Respostas
{
"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
}
}Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/batches/<batch_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| batch_id | path | string | Obrigatório | — |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"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
}
}Exemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/v1/batches/<batch_id>/cancel' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| batch_id | path | string | Obrigatório | — |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"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
}
}Moderações
2 endpointsClassificar entrada de texto ou imagem potencialmente prejudicial.
Exemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/openai/v1/moderations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"input": "Text to classify"
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"input": "Text to classify"
}Respostas
{
"id": "modr_example",
"model": "your-model-id",
"results": [
{
"flagged": false,
"categories": {},
"category_scores": {}
}
]
}Exemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/v1/moderations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"input": "Text to classify"
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"input": "Text to classify"
}Respostas
{
"id": "modr_example",
"model": "your-model-id",
"results": [
{
"flagged": false,
"categories": {},
"category_scores": {}
}
]
}Completações de Texto
2 endpointsCriar conclusões de texto legadas compatíveis com a OpenAI.
OpenAI legacy Completions accepts boolean or null stream. Null selects non-streaming and remains null in the native provider request; other non-boolean values return HTTP 400 before funding or provider dispatch.
POST /openai/v1/completionsExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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"
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | Opcional | 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 | Opcional | 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 | Opcional | 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 | Opcional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-id",
"prompt": "Once upon a time"
}Respostas
{
"id": "cmpl_example",
"object": "text_completion",
"choices": [
{
"index": 0,
"text": " there was a quiet coast."
}
]
}OpenAI legacy Completions accepts boolean or null stream. Null selects non-streaming and remains null in the native provider request; other non-boolean values return HTTP 400 before funding or provider dispatch.
POST /v1/completionsExemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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"
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | Opcional | 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 | Opcional | 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 | Opcional | 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 | Opcional | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"model": "your-model-id",
"prompt": "Once upon a time"
}Respostas
{
"id": "cmpl_example",
"object": "text_completion",
"choices": [
{
"index": 0,
"text": " there was a quiet coast."
}
]
}Outros endpoints (Knowledge Crystallization)
1 endpointExport crystallized AI conversation events for local Markdown notes sync.
Exemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/knowledge/export' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| cursor | query | string | Opcional | — |
| limit | query | integer | Opcional | — |
| collection_id | query | string | Opcional | — |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"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"
}Integração do ChatRoom
4 endpointsDiscover key-scoped models and enterprise capabilities for independent ChatRoom clients.
Native ChatRoom metadata authenticated with a Developer API key. Preserves existing tenant/key visibility and imported stable asset ownership references.
GET /v1/chatroom/enterprise-contextExemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/chatroom/enterprise-context' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"success": true,
"data": {
"featureControls": {
"seedanceAuthorizedAssets": false,
"videoDramaUsage": {
"enabled": false,
"dramaNames": []
}
}
}
}Native ChatRoom metadata authenticated with a Developer API key. Preserves existing tenant/key visibility and imported stable asset ownership references.
GET /v1/chatroom/key-contextExemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/chatroom/key-context' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"success": true,
"data": {
"userId": "user_example",
"apiKeyId": "key_example",
"featureControls": {
"seedanceAuthorizedAssets": false,
"videoDramaUsage": {
"enabled": false,
"dramaNames": []
}
}
}
}Native ChatRoom metadata authenticated with a Developer API key. Preserves existing tenant/key visibility and imported stable asset ownership references.
GET /v1/chatroom/modelsExemplo de solicitação
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/chatroom/models?scope=<scope>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| scope | query | string | Obrigatório | — |
| limit | query | integer | Opcional | —Exemplo: 1000 |
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Respostas
{
"success": true,
"data": {
"models": [],
"total": 0
}
}Exemplo de solicitação
curl \
--request POST \
--url 'https://api.anyint.cloud/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"
]
}'Autenticação
http · bearerPasse a chave da API de desenvolvedor AnyInt como um token Bearer no cabeçalho Authorization.Parâmetros
| Nome | Localização | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| X-Request-Id | header | string | Opcional | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
Corpo da solicitação
Obrigatório{
"request_ids": [
"req_example:async"
]
}Respostas
{
"request_costs": [
{
"request_id": "req_example:async",
"credits": 125
}
]
}