API حوالہ
OpenAI-موزوں، Anthropic، Gemini، اور غیر ہم وقت میڈیا ورک فلوز میں ایک گیٹ وے اور API کلید استعمال کریں۔
- سرور
https://api.anyint.cloudیہ OpenAPI دستاویز فراہم کرنے والا AnyInt گیٹ وے کا ماخذ۔
81 اینڈ پوائنٹس
چیٹ
2 اینڈ پوائنٹسOpenAI کے مطابق مکالماتی جوابات بنائیں۔
مطلوبہ کارروائی کرنے کے لیے اس اینڈ پوائنٹ کو کال کریں۔
POST /openai/v1/chat/completionsدرخواست کی مثال
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."
}
]
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | اختیاری | 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 | اختیاری | 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 | اختیاری | 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 | اختیاری | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Explain edge computing in 2 sentences."
}
]
}جوابات
{
"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"
}
]
}مطلوبہ کارروائی کرنے کے لیے اس اینڈ پوائنٹ کو کال کریں۔
POST /v1/chat/completionsدرخواست کی مثال
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."
}
]
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | اختیاری | 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 | اختیاری | 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 | اختیاری | 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 | اختیاری | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Explain edge computing in 2 sentences."
}
]
}جوابات
{
"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"
}
]
}جوابات
2 اینڈ پوائنٹسOpenAI Responses API کی شکل کے ساتھ جوابات بنائیں۔
مطلوبہ کارروائی کرنے کے لیے اس اینڈ پوائنٹ کو کال کریں۔
POST /openai/v1/responsesدرخواست کی مثال
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."
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | اختیاری | 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 | اختیاری | 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 | اختیاری | 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 | اختیاری | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-id",
"input": "Write a short welcome message."
}جوابات
{
"id": "resp_example",
"object": "response",
"status": "completed"
}مطلوبہ کارروائی کرنے کے لیے اس اینڈ پوائنٹ کو کال کریں۔
POST /v1/responsesدرخواست کی مثال
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."
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | اختیاری | 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 | اختیاری | 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 | اختیاری | 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 | اختیاری | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-id",
"input": "Write a short welcome message."
}جوابات
{
"id": "resp_example",
"object": "response",
"status": "completed"
}Anthropic پیغامات
4 اینڈ پوائنٹسAnthropic کے مقامی پیغامات، ٹوکن گنتی، اور ماڈل ڈسکوری استعمال کریں۔
مطلوبہ کارروائی کرنے کے لیے اس اینڈ پوائنٹ کو کال کریں۔
POST /anthropic/v1/messagesدرخواست کی مثال
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."
}
]
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | اختیاری | 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 | اختیاری | 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 | اختیاری | 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 | اختیاری | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-id",
"max_tokens": 256,
"messages": [
{
"role": "user",
"content": "Explain edge computing briefly."
}
]
}جوابات
{
"id": "msg_example",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "Edge computing runs workloads near the data source."
}
]
}درخواست کی مثال
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"
}
]
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}جوابات
{
"input_tokens": 12
}مطلوبہ کارروائی کرنے کے لیے اس اینڈ پوائنٹ کو کال کریں۔
POST /v1/messagesدرخواست کی مثال
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."
}
]
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | اختیاری | 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 | اختیاری | 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 | اختیاری | 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 | اختیاری | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-id",
"max_tokens": 256,
"messages": [
{
"role": "user",
"content": "Explain edge computing briefly."
}
]
}جوابات
{
"id": "msg_example",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "Edge computing runs workloads near the data source."
}
]
}درخواست کی مثال
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"
}
]
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}جوابات
{
"input_tokens": 12
}Gemini مواد
8 اینڈ پوائنٹسGemini کے مقامی مواد کی تخلیق اور سٹریمنگ استعمال کریں۔
مطلوبہ کارروائی کرنے کے لیے اس اینڈ پوائنٹ کو کال کریں۔
POST /gemini/v1beta/models/{model}/generateContentدرخواست کی مثال
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."
}
]
}
]
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| model | path | string | ضروری | — |
| X-Client-Message-Id | header | string | اختیاری | 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 | اختیاری | 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 | اختیاری | 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 | اختیاری | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}جوابات
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "Edge computing reduces latency."
}
]
}
}
]
}مطلوبہ کارروائی کرنے کے لیے اس اینڈ پوائنٹ کو کال کریں۔
POST /gemini/v1beta/models/{model}/streamGenerateContentدرخواست کی مثال
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."
}
]
}
]
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| model | path | string | ضروری | — |
| alt | query | string | اختیاری | — |
| X-Client-Message-Id | header | string | اختیاری | 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 | اختیاری | 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 | اختیاری | 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 | اختیاری | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}جوابات
data: {"candidates":[{"content":{"role":"model","parts":[{"text":"Edge computing reduces latency."}]}}]}
مطلوبہ کارروائی کرنے کے لیے اس اینڈ پوائنٹ کو کال کریں۔
POST /gemini/v1beta/models/{model}:generateContentدرخواست کی مثال
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."
}
]
}
]
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| model | path | string | ضروری | — |
| X-Client-Message-Id | header | string | اختیاری | 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 | اختیاری | 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 | اختیاری | 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 | اختیاری | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}جوابات
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "Edge computing reduces latency."
}
]
}
}
]
}مطلوبہ کارروائی کرنے کے لیے اس اینڈ پوائنٹ کو کال کریں۔
POST /gemini/v1beta/models/{model}:streamGenerateContentدرخواست کی مثال
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."
}
]
}
]
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| model | path | string | ضروری | — |
| alt | query | string | اختیاری | — |
| X-Client-Message-Id | header | string | اختیاری | 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 | اختیاری | 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 | اختیاری | 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 | اختیاری | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}جوابات
data: {"candidates":[{"content":{"role":"model","parts":[{"text":"Edge computing reduces latency."}]}}]}
مطلوبہ کارروائی کرنے کے لیے اس اینڈ پوائنٹ کو کال کریں۔
POST /v1beta/models/{model}/generateContentدرخواست کی مثال
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."
}
]
}
]
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| model | path | string | ضروری | — |
| X-Client-Message-Id | header | string | اختیاری | 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 | اختیاری | 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 | اختیاری | 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 | اختیاری | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}جوابات
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "Edge computing reduces latency."
}
]
}
}
]
}مطلوبہ کارروائی کرنے کے لیے اس اینڈ پوائنٹ کو کال کریں۔
POST /v1beta/models/{model}/streamGenerateContentدرخواست کی مثال
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."
}
]
}
]
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| model | path | string | ضروری | — |
| alt | query | string | اختیاری | — |
| X-Client-Message-Id | header | string | اختیاری | 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 | اختیاری | 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 | اختیاری | 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 | اختیاری | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}جوابات
data: {"candidates":[{"content":{"role":"model","parts":[{"text":"Edge computing reduces latency."}]}}]}
مطلوبہ کارروائی کرنے کے لیے اس اینڈ پوائنٹ کو کال کریں۔
POST /v1beta/models/{model}:generateContentدرخواست کی مثال
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."
}
]
}
]
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| model | path | string | ضروری | — |
| X-Client-Message-Id | header | string | اختیاری | 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 | اختیاری | 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 | اختیاری | 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 | اختیاری | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}جوابات
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "Edge computing reduces latency."
}
]
}
}
]
}مطلوبہ کارروائی کرنے کے لیے اس اینڈ پوائنٹ کو کال کریں۔
POST /v1beta/models/{model}:streamGenerateContentدرخواست کی مثال
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."
}
]
}
]
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| model | path | string | ضروری | — |
| alt | query | string | اختیاری | — |
| X-Client-Message-Id | header | string | اختیاری | 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 | اختیاری | 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 | اختیاری | 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 | اختیاری | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}جوابات
data: {"candidates":[{"content":{"role":"model","parts":[{"text":"Edge computing reduces latency."}]}}]}
ماڈلز
5 اینڈ پوائنٹسہر پروٹوکول کے ذریعے دستیاب ماڈلز دریافت کریں۔
درخواست کی مثال
curl \
--request GET \
--url 'https://api.anyint.cloud/anthropic/v1/models' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"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"
}درخواست کی مثال
curl \
--request GET \
--url 'https://api.anyint.cloud/gemini/v1beta/models' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"models": [
{
"name": "models/your-model-id",
"displayName": "Configured model",
"supportedGenerationMethods": [
"generateContent"
],
"inputTokenLimit": 8192,
"outputTokenLimit": 8192
}
]
}درخواست کی مثال
curl \
--request GET \
--url 'https://api.anyint.cloud/openai/v1/models' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"object": "list",
"data": [
{
"id": "your-model-id",
"object": "model",
"created": 1767225600,
"owned_by": "configured-provider"
}
]
}درخواست کی مثال
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/models' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"object": "list",
"data": [
{
"id": "your-model-id",
"object": "model",
"created": 1767225600,
"owned_by": "configured-provider"
}
]
}درخواست کی مثال
curl \
--request GET \
--url 'https://api.anyint.cloud/v1beta/models' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "Edge computing reduces latency."
}
]
}
}
]
}ایمبیڈنگز
2 اینڈ پوائنٹسٹیکسٹ ان پٹ سے ویکٹر ایمبیڈنگز بنائیں۔
درخواست کی مثال
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"
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-id",
"input": "A calm ocean at dawn"
}جوابات
{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [
0.012,
-0.008,
0.021
]
}
]
}درخواست کی مثال
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"
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-id",
"input": "A calm ocean at dawn"
}جوابات
{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [
0.012,
-0.008,
0.021
]
}
]
}تصاویر
5 اینڈ پوائنٹسGenerate 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/editsدرخواست کی مثال
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"
}
]
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"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"
}
]
}جوابات
{
"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/generationsدرخواست کی مثال
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
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-id",
"prompt": "A minimal paper sculpture of a cloud",
"n": 1
}جوابات
{
"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/editsدرخواست کی مثال
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"
}
]
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"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"
}
]
}جوابات
{
"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/generationsدرخواست کی مثال
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
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-id",
"prompt": "A minimal paper sculpture of a cloud",
"n": 1
}جوابات
{
"created": 1700000000,
"data": [
{
"b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB"
}
]
}درخواست کی مثال
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'توثیق
کسی تصدیق کی ضرورت نہیں
پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| key | query | string | ضروری | — |
| tenant_id | query | string | ضروری | — |
| mime_type | query | string | ضروری | — |
| expires_at | query | integer | ضروری | — |
| signature | query | string | ضروری | — |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
<binary>آڈیو
3 اینڈ پوائنٹسآڈیو ٹرانسکرائب کریں، آڈیو کا انگریزی میں ترجمہ کریں، یا تقریر تیار کریں۔
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/speechدرخواست کی مثال
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."
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-id",
"voice": "your-voice-id",
"input": "Welcome to AnyInt Gateway."
}جوابات
<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/transcriptionsدرخواست کی مثال
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'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"file": "audio.wav",
"model": "your-model-id"
}جوابات
{
"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/translationsدرخواست کی مثال
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'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"file": "audio.wav",
"model": "your-model-id"
}جوابات
{
"text": "Example transcript."
}غیر ہم وقت میڈیا
23 اینڈ پوائنٹستصاویر، ویڈیوز اور موسیقی کے غیر متزامن (asynchronous) کام بنائیں اور ان کا معائنہ کریں۔
درخواست کی مثال
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
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}جوابات
{
"id": "task_example",
"taskId": "task_example",
"object": "audio",
"status": "queued",
"created_at": 0
}درخواست کی مثال
curl \
--request GET \
--url 'https://api.anyint.cloud/openai/v1/audio/generations/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| task_id | path | string | ضروری | — |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"id": "task_example",
"taskId": "task_example",
"object": "audio",
"status": "queued",
"created_at": 0
}درخواست کی مثال
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'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| task_id | path | string | ضروری | — |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
<binary>Seedance فعال تصویر اور ویڈیو asset:// حوالہ جات قبول کرتا ہے، بشمول مخلوط reference_image اور reference_video مواد۔ ہر حوالہ انٹرپرائز کی موجودہ اثاثہ لائبریری سے تعلق رکھنا چاہیے۔ غیر ہم آہنگ لائبریری کے حوالہ جات روٹنگ، ٹاسک بنانے یا اپ اسٹریم پر جمع کرانے سے پہلے HTTP 400 authorized_asset_provider_mismatch، retryable=false اور user_action=simplify_input واپس کرتے ہیں۔ دوبارہ کوشش کرنے سے پہلے حوالہ شدہ تصاویر اور ویڈیوز کو موجودہ لائبریری میں رجسٹر کریں اور ان کے حوالہ جات اپ ڈیٹ کریں۔
POST /openai/v1/videosدرخواست کی مثال
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
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}جوابات
{
"id": "task_example",
"taskId": "task_example",
"object": "video",
"status": "queued",
"created_at": 0
}درخواست کی مثال
curl \
--request GET \
--url 'https://api.anyint.cloud/openai/v1/videos/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| task_id | path | string | ضروری | — |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"id": "task_example",
"taskId": "task_example",
"object": "video",
"status": "queued",
"created_at": 0
}درخواست کی مثال
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'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| task_id | path | string | ضروری | — |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
<binary>درخواست کی مثال
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/async-tasks' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"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"
}
]
}درخواست کی مثال
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"
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-id",
"prompt": "A minimal paper sculpture of a cloud"
}جوابات
{
"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
}درخواست کی مثال
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
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-id",
"prompt": "Warm ambient music with soft piano",
"duration_seconds": 30
}جوابات
{
"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
}درخواست کی مثال
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
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-id",
"prompt": "Slow aerial movement over a quiet coast",
"duration_seconds": 6,
"fps": 24
}جوابات
{
"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
}درخواست کی مثال
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/async-tasks/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| task_id | path | string | ضروری | — |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"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"
}
}درخواست کی مثال
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'توثیق
کسی تصدیق کی ضرورت نہیں
پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| task_id | path | string | ضروری | — |
| artifact_id | path | string | ضروری | — |
| tenant_id | query | string | ضروری | — |
| expires_at | query | integer | ضروری | — |
| signature | query | string | ضروری | — |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
<binary>درخواست کی مثال
curl \
--request POST \
--url 'https://api.anyint.cloud/v1/async-tasks/<task_id>/cancel' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| task_id | path | string | ضروری | — |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"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"
}
}درخواست کی مثال
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
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}جوابات
{
"id": "task_example",
"taskId": "task_example",
"object": "audio",
"status": "queued",
"created_at": 0
}درخواست کی مثال
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/audio/generations/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| task_id | path | string | ضروری | — |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"id": "task_example",
"taskId": "task_example",
"object": "audio",
"status": "queued",
"created_at": 0
}درخواست کی مثال
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'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| task_id | path | string | ضروری | — |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
<binary>درخواست کی مثال
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
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-id",
"prompt": "Warm ambient music with soft piano",
"duration_seconds": 30
}جوابات
{
"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
}درخواست کی مثال
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/tasks/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| task_id | path | string | ضروری | — |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"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"
}
}درخواست کی مثال
curl \
--request POST \
--url 'https://api.anyint.cloud/v1/tasks/<task_id>/cancel' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| task_id | path | string | ضروری | — |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"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"
}
}Seedance فعال تصویر اور ویڈیو asset:// حوالہ جات قبول کرتا ہے، بشمول مخلوط reference_image اور reference_video مواد۔ ہر حوالہ انٹرپرائز کی موجودہ اثاثہ لائبریری سے تعلق رکھنا چاہیے۔ غیر ہم آہنگ لائبریری کے حوالہ جات روٹنگ، ٹاسک بنانے یا اپ اسٹریم پر جمع کرانے سے پہلے HTTP 400 authorized_asset_provider_mismatch، retryable=false اور user_action=simplify_input واپس کرتے ہیں۔ دوبارہ کوشش کرنے سے پہلے حوالہ شدہ تصاویر اور ویڈیوز کو موجودہ لائبریری میں رجسٹر کریں اور ان کے حوالہ جات اپ ڈیٹ کریں۔
POST /v1/videosدرخواست کی مثال
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
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}جوابات
{
"id": "task_example",
"taskId": "task_example",
"object": "video",
"status": "queued",
"created_at": 0
}درخواست کی مثال
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
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-id",
"prompt": "Slow aerial movement over a quiet coast",
"duration_seconds": 6,
"fps": 24
}جوابات
{
"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
}درخواست کی مثال
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/videos/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| task_id | path | string | ضروری | — |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"id": "task_example",
"taskId": "task_example",
"object": "video",
"status": "queued",
"created_at": 0
}درخواست کی مثال
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/videos/<task_id>/content' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/octet-stream'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| task_id | path | string | ضروری | — |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
<binary>فائلیں
5 اینڈ پوائنٹسفائلیں اپ لوڈ کریں، فہرست بنائیں، معائنہ کریں، اور ڈاؤن لوڈ کریں۔
درخواست کی مثال
curl \
--request GET \
--url 'https://api.anyint.cloud/openai/v1/files' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"object": "list",
"data": [
{
"id": "file_example",
"object": "file",
"bytes": 128,
"created_at": 1700000000,
"filename": "document.jsonl",
"purpose": "batch",
"status": "processed"
}
]
}مواد محفوظ کرنے سے پہلے API key کی IP اور فی منٹ درخواستوں کی پالیسیاں لاگو کرتا ہے۔ اپ لوڈز ماڈل سے آزاد ہیں اور انفرنس کوٹہ استعمال نہیں کرتے۔ فائلیں اپ لوڈ کے 30 دن بعد ختم ہو جاتی ہیں، جب تک expires_after کم مدت (1 گھنٹے سے 30 دن) مقرر نہ کرے؛ ختم شدہ فائلیں فہرست میں نہیں آتیں، ڈاؤن لوڈ نہیں ہوتیں اور حذف کر دی جاتی ہیں۔ ہر ٹیننٹ زیادہ سے زیادہ 10,000 فعال فائلیں، کل 10 GiB تک رکھ سکتا ہے۔
POST /openai/v1/filesدرخواست کی مثال
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'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"file": "document.jsonl",
"purpose": "batch"
}جوابات
{
"id": "file_example",
"object": "file",
"bytes": 128,
"created_at": 1700000000,
"filename": "document.jsonl",
"purpose": "batch",
"status": "processed"
}درخواست کی مثال
curl \
--request GET \
--url 'https://api.anyint.cloud/openai/v1/files/<file_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| file_id | path | string | ضروری | — |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"id": "file_example",
"object": "file",
"bytes": 128,
"created_at": 1700000000,
"filename": "document.jsonl",
"purpose": "batch",
"status": "processed"
}درخواست کی مثال
curl \
--request DELETE \
--url 'https://api.anyint.cloud/openai/v1/files/<file_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| file_id | path | string | ضروری | — |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"id": "file_example",
"object": "file",
"deleted": true
}درخواست کی مثال
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'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| file_id | path | string | ضروری | — |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
<binary>بیچز
8 اینڈ پوائنٹسجب تعیناتی کے لیے آبجیکٹ اسٹوریج فعال ہو تو فراہم کنندہ کے مقامی JSONL بیچز جمع کروائیں۔
درخواست کی مثال
curl \
--request GET \
--url 'https://api.anyint.cloud/openai/v1/batches' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| after | query | string | اختیاری | — |
| limit | query | integer | اختیاری | —مثال: 20 |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"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/batchesدرخواست کی مثال
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"
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔درخواست کا باڈی
ضروری{
"input_file_id": "file_example",
"endpoint": "/v1/chat/completions",
"completion_window": "24h"
}جوابات
{
"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
}
}درخواست کی مثال
curl \
--request GET \
--url 'https://api.anyint.cloud/openai/v1/batches/<batch_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| batch_id | path | string | ضروری | — |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"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
}
}درخواست کی مثال
curl \
--request POST \
--url 'https://api.anyint.cloud/openai/v1/batches/<batch_id>/cancel' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| batch_id | path | string | ضروری | — |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"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
}
}درخواست کی مثال
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/batches' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| after | query | string | اختیاری | — |
| limit | query | integer | اختیاری | —مثال: 20 |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"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/batchesدرخواست کی مثال
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"
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔درخواست کا باڈی
ضروری{
"input_file_id": "file_example",
"endpoint": "/v1/chat/completions",
"completion_window": "24h"
}جوابات
{
"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
}
}درخواست کی مثال
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/batches/<batch_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| batch_id | path | string | ضروری | — |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"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
}
}درخواست کی مثال
curl \
--request POST \
--url 'https://api.anyint.cloud/v1/batches/<batch_id>/cancel' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| batch_id | path | string | ضروری | — |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"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
}
}ماڈریشنز
2 اینڈ پوائنٹسنقصاندہ ٹیکسٹ یا امیج ان پٹ کی درجہ بندی کریں
درخواست کی مثال
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"
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"input": "Text to classify"
}جوابات
{
"id": "modr_example",
"model": "your-model-id",
"results": [
{
"flagged": false,
"categories": {},
"category_scores": {}
}
]
}درخواست کی مثال
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"
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"input": "Text to classify"
}جوابات
{
"id": "modr_example",
"model": "your-model-id",
"results": [
{
"flagged": false,
"categories": {},
"category_scores": {}
}
]
}ٹیکسٹ کمپلیشنز
2 اینڈ پوائنٹسلیگیسی 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/completionsدرخواست کی مثال
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"
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | اختیاری | 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 | اختیاری | 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 | اختیاری | 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 | اختیاری | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-id",
"prompt": "Once upon a time"
}جوابات
{
"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/completionsدرخواست کی مثال
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"
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | اختیاری | 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 | اختیاری | 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 | اختیاری | 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 | اختیاری | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"model": "your-model-id",
"prompt": "Once upon a time"
}جوابات
{
"id": "cmpl_example",
"object": "text_completion",
"choices": [
{
"index": 0,
"text": " there was a quiet coast."
}
]
}دیگر اینڈ پوائنٹس (Knowledge Crystallization)
1 اختتامی نقطہExport crystallized AI conversation events for local Markdown notes sync.
درخواست کی مثال
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/knowledge/export' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| cursor | query | string | اختیاری | — |
| limit | query | integer | اختیاری | — |
| collection_id | query | string | اختیاری | — |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"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"
}ChatRoom انضمام
4 اینڈ پوائنٹسDiscover 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-contextدرخواست کی مثال
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/chatroom/enterprise-context' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"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-contextدرخواست کی مثال
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/chatroom/key-context' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"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/modelsدرخواست کی مثال
curl \
--request GET \
--url 'https://api.anyint.cloud/v1/chatroom/models?scope=<scope>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| scope | query | string | ضروری | — |
| limit | query | integer | اختیاری | —مثال: 1000 |
| X-Request-Id | header | string | اختیاری | 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. |
جوابات
{
"success": true,
"data": {
"models": [],
"total": 0
}
}درخواست کی مثال
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"
]
}'توثیق
http · bearerAnyInt ڈویلپر API کلید کو Authorization header میں Bearer token کے طور پر پاس کریں۔پیرامیٹرز
| نام | مقام | قسم | ضروری | تفصیل |
|---|---|---|---|---|
| X-Request-Id | header | string | اختیاری | 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. |
درخواست کا باڈی
ضروری{
"request_ids": [
"req_example:async"
]
}جوابات
{
"request_costs": [
{
"request_id": "req_example:async",
"credits": 125
}
]
}