Rujukan API
Gunakan satu gerbang dan kunci API merentas aliran kerja media yang serasi dengan OpenAI, Anthropic, Gemini dan tak segerak.
- Pelayan
https://api.anyint.aiAsal AnyInt Gateway yang menyajikan dokumen OpenAPI ini.
75 endpoint
Integrasi ChatRoom
4 endpointDiscover key-scoped models and enterprise capabilities for independent ChatRoom clients.
Contoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/v1/tasks/request-costs' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"request_ids": [
"req_example:async"
]
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"request_ids": [
"req_example:async"
]
}Respons
{
"request_costs": [
{
"request_id": "req_example:async",
"credits": 125
}
]
}Native ChatRoom metadata authenticated with a Developer API key. Preserves existing tenant/key visibility and imported stable asset ownership references.
GET /v1/chatroom/modelsContoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/v1/chatroom/models?scope=<scope>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| scope | query | string | Diperlukan | — |
| limit | query | integer | Pilihan | —Contoh: 1000 |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"success": true,
"data": {
"models": [],
"total": 0
}
}Native ChatRoom metadata authenticated with a Developer API key. Preserves existing tenant/key visibility and imported stable asset ownership references.
GET /v1/chatroom/enterprise-contextContoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/v1/chatroom/enterprise-context' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"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-contextContoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/v1/chatroom/key-context' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"success": true,
"data": {
"userId": "user_example",
"apiKeyId": "key_example",
"featureControls": {
"seedanceAuthorizedAssets": false,
"videoDramaUsage": {
"enabled": false,
"dramaNames": []
}
}
}
}Sembang
2 endpointCipta respons perbualan yang serasi dengan OpenAI.
Panggil titik akhir ini untuk melaksanakan operasi yang diterangkan.
POST /v1/chat/completionsContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/v1/chat/completions' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Explain edge computing in 2 sentences."
}
]
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | Pilihan | 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 | Pilihan | 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 | Pilihan | 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 | Pilihan | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Explain edge computing in 2 sentences."
}
]
}Respons
{
"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"
}
]
}Panggil titik akhir ini untuk melaksanakan operasi yang diterangkan.
POST /openai/v1/chat/completionsContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/chat/completions' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Explain edge computing in 2 sentences."
}
]
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | Pilihan | 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 | Pilihan | 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 | Pilihan | 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 | Pilihan | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Explain edge computing in 2 sentences."
}
]
}Respons
{
"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"
}
]
}Respons
2 endpointCipta respons dengan bentuk OpenAI Responses API.
Panggil titik akhir ini untuk melaksanakan operasi yang diterangkan.
POST /v1/responsesContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/v1/responses' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"input": "Write a short welcome message."
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | Pilihan | 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 | Pilihan | 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 | Pilihan | 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 | Pilihan | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-id",
"input": "Write a short welcome message."
}Respons
{
"id": "resp_example",
"object": "response",
"status": "completed"
}Panggil titik akhir ini untuk melaksanakan operasi yang diterangkan.
POST /openai/v1/responsesContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/responses' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"input": "Write a short welcome message."
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | Pilihan | 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 | Pilihan | 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 | Pilihan | 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 | Pilihan | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-id",
"input": "Write a short welcome message."
}Respons
{
"id": "resp_example",
"object": "response",
"status": "completed"
}Pelengkapan Teks
2 endpointCipta pelengkapan teks lama yang serasi dengan OpenAI.
Panggil titik akhir ini untuk melaksanakan operasi yang diterangkan.
POST /v1/completionsContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/v1/completions' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"prompt": "Once upon a time"
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | Pilihan | 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 | Pilihan | 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 | Pilihan | 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 | Pilihan | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-id",
"prompt": "Once upon a time"
}Respons
{
"id": "cmpl_example",
"object": "text_completion",
"choices": [
{
"index": 0,
"text": " there was a quiet coast."
}
]
}Panggil titik akhir ini untuk melaksanakan operasi yang diterangkan.
POST /openai/v1/completionsContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/completions' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"prompt": "Once upon a time"
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | Pilihan | 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 | Pilihan | 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 | Pilihan | 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 | Pilihan | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-id",
"prompt": "Once upon a time"
}Respons
{
"id": "cmpl_example",
"object": "text_completion",
"choices": [
{
"index": 0,
"text": " there was a quiet coast."
}
]
}Penyematan
2 endpointCipta pembenaman vektor daripada input teks.
Contoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/v1/embeddings' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"input": "A calm ocean at dawn"
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-id",
"input": "A calm ocean at dawn"
}Respons
{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [
0.012,
-0.008,
0.021
]
}
]
}Contoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/embeddings' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"input": "A calm ocean at dawn"
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-id",
"input": "A calm ocean at dawn"
}Respons
{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [
0.012,
-0.008,
0.021
]
}
]
}Moderasi
2 endpointKelaskan input teks atau imej yang berpotensi berbahaya.
Contoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/v1/moderations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"input": "Text to classify"
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"input": "Text to classify"
}Respons
{
"id": "modr_example",
"model": "your-model-id",
"results": [
{
"flagged": false,
"categories": {},
"category_scores": {}
}
]
}Contoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/moderations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"input": "Text to classify"
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"input": "Text to classify"
}Respons
{
"id": "modr_example",
"model": "your-model-id",
"results": [
{
"flagged": false,
"categories": {},
"category_scores": {}
}
]
}Bet
8 endpointSerahkan kelompok JSONL asli pembekal apabila storan objek didayakan untuk penggunaan.
Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/v1/batches' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| after | query | string | Pilihan | — |
| limit | query | integer | Pilihan | —Contoh: 20 |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"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/batchesContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/v1/batches' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"input_file_id": "file_example",
"endpoint": "/v1/chat/completions",
"completion_window": "24h"
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Badan permintaan
Diperlukan{
"input_file_id": "file_example",
"endpoint": "/v1/chat/completions",
"completion_window": "24h"
}Respons
{
"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
}
}Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/batches' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| after | query | string | Pilihan | — |
| limit | query | integer | Pilihan | —Contoh: 20 |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"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/batchesContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/batches' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"input_file_id": "file_example",
"endpoint": "/v1/chat/completions",
"completion_window": "24h"
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Badan permintaan
Diperlukan{
"input_file_id": "file_example",
"endpoint": "/v1/chat/completions",
"completion_window": "24h"
}Respons
{
"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
}
}Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/v1/batches/<batch_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| batch_id | path | string | Diperlukan | — |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"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
}
}Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/batches/<batch_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| batch_id | path | string | Diperlukan | — |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"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
}
}Contoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/v1/batches/<batch_id>/cancel' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| batch_id | path | string | Diperlukan | — |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"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
}
}Contoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/batches/<batch_id>/cancel' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| batch_id | path | string | Diperlukan | — |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"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
}
}Fail
5 endpointMuat naik, senaraikan, periksa dan muat turun fail.
Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/files' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"object": "list",
"data": [
{
"id": "file_example",
"object": "file",
"bytes": 128,
"created_at": 1700000000,
"filename": "document.jsonl",
"purpose": "batch",
"status": "processed"
}
]
}Menggunakan dasar IP dan permintaan seminit API key sebelum menyimpan kandungan. Muat naik tidak bergantung pada model dan tidak menggunakan kuota inferens. Fail tamat tempoh 30 hari selepas dimuat naik melainkan expires_after menetapkan tempoh yang lebih pendek (1 jam hingga 30 hari); fail yang tamat tempoh tidak lagi disenaraikan atau boleh dimuat turun dan akan dipadamkan. Setiap tenant boleh menyimpan paling banyak 10,000 fail aktif berjumlah 10 GiB.
POST /openai/v1/filesContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/files' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--form 'file=@path/to/document.jsonl' \
--form 'purpose=batch'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"file": "document.jsonl",
"purpose": "batch"
}Respons
{
"id": "file_example",
"object": "file",
"bytes": 128,
"created_at": 1700000000,
"filename": "document.jsonl",
"purpose": "batch",
"status": "processed"
}Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/files/<file_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| file_id | path | string | Diperlukan | — |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"id": "file_example",
"object": "file",
"bytes": 128,
"created_at": 1700000000,
"filename": "document.jsonl",
"purpose": "batch",
"status": "processed"
}Contoh permintaan
curl \
--request DELETE \
--url 'https://api.anyint.ai/openai/v1/files/<file_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| file_id | path | string | Diperlukan | — |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"id": "file_example",
"object": "file",
"deleted": true
}Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/files/<file_id>/content' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/octet-stream'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| file_id | path | string | Diperlukan | — |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
<binary>Audio
3 endpointTranskripsikan audio, terjemahkan audio ke Bahasa Inggeris, atau sintesis pertuturan.
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/transcriptionsContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/audio/transcriptions' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--form 'file=@path/to/audio.wav' \
--form 'model=your-model-id'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"file": "audio.wav",
"model": "your-model-id"
}Respons
{
"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/translationsContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/audio/translations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--form 'file=@path/to/audio.wav' \
--form 'model=your-model-id'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"file": "audio.wav",
"model": "your-model-id"
}Respons
{
"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/speechContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/audio/speech' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: audio/mpeg' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"voice": "your-voice-id",
"input": "Welcome to AnyInt Gateway."
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-id",
"voice": "your-voice-id",
"input": "Welcome to AnyInt Gateway."
}Respons
<binary>Imej
4 endpointGenerate and edit images with OpenAI-compatible requests.
Panggil titik akhir ini untuk melaksanakan operasi yang diterangkan.
POST /v1/images/editsContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/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"
}
]
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"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"
}
]
}Respons
{
"created": 1700000000,
"data": [
{
"b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB"
}
]
}Panggil titik akhir ini untuk melaksanakan operasi yang diterangkan.
POST /openai/v1/images/editsContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/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"
}
]
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"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"
}
]
}Respons
{
"created": 1700000000,
"data": [
{
"b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB"
}
]
}Panggil titik akhir ini untuk melaksanakan operasi yang diterangkan.
POST /v1/images/generationsContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/v1/images/generations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"prompt": "A minimal paper sculpture of a cloud",
"n": 1
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-id",
"prompt": "A minimal paper sculpture of a cloud",
"n": 1
}Respons
{
"created": 1700000000,
"data": [
{
"b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB"
}
]
}Panggil titik akhir ini untuk melaksanakan operasi yang diterangkan.
POST /openai/v1/images/generationsContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/images/generations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"prompt": "A minimal paper sculpture of a cloud",
"n": 1
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-id",
"prompt": "A minimal paper sculpture of a cloud",
"n": 1
}Respons
{
"created": 1700000000,
"data": [
{
"b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB"
}
]
}Model
4 endpointTemui model yang tersedia melalui setiap protokol.
Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/models' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"object": "list",
"data": [
{
"id": "your-model-id",
"object": "model",
"created": 1767225600,
"owned_by": "configured-provider"
}
]
}Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/v1/models' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"object": "list",
"data": [
{
"id": "your-model-id",
"object": "model",
"created": 1767225600,
"owned_by": "configured-provider"
}
]
}Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/anthropic/v1/models' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"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"
}Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/gemini/v1beta/models' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"models": [
{
"name": "models/your-model-id",
"displayName": "Configured model",
"supportedGenerationMethods": [
"generateContent"
],
"inputTokenLimit": 8192,
"outputTokenLimit": 8192
}
]
}Media Tak Segerak
23 endpointCipta dan semak imbas tugasan imej, video dan muzik secara tak segerak.
Seedance menerima rujukan asset:// imej dan video yang aktif, termasuk kandungan bercampur reference_image dan reference_video. Setiap rujukan mesti tergolong dalam pustaka aset semasa perusahaan. Rujukan pustaka yang tidak serasi mengembalikan HTTP 400 authorized_asset_provider_mismatch, retryable=false dan user_action=simplify_input sebelum penghalaan, penciptaan tugas atau penyerahan ke upstream. Daftarkan imej dan video yang dirujuk dalam pustaka semasa dan kemas kini rujukannya sebelum mencuba semula.
POST /v1/videosContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/v1/videos' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}Respons
{
"id": "task_example",
"taskId": "task_example",
"object": "video",
"status": "queued",
"created_at": 0
}Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/v1/videos/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| task_id | path | string | Diperlukan | — |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"id": "task_example",
"taskId": "task_example",
"object": "video",
"status": "queued",
"created_at": 0
}Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/v1/videos/<task_id>/content' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/octet-stream'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| task_id | path | string | Diperlukan | — |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
<binary>Seedance menerima rujukan asset:// imej dan video yang aktif, termasuk kandungan bercampur reference_image dan reference_video. Setiap rujukan mesti tergolong dalam pustaka aset semasa perusahaan. Rujukan pustaka yang tidak serasi mengembalikan HTTP 400 authorized_asset_provider_mismatch, retryable=false dan user_action=simplify_input sebelum penghalaan, penciptaan tugas atau penyerahan ke upstream. Daftarkan imej dan video yang dirujuk dalam pustaka semasa dan kemas kini rujukannya sebelum mencuba semula.
POST /openai/v1/videosContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/videos' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}Respons
{
"id": "task_example",
"taskId": "task_example",
"object": "video",
"status": "queued",
"created_at": 0
}Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/videos/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| task_id | path | string | Diperlukan | — |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"id": "task_example",
"taskId": "task_example",
"object": "video",
"status": "queued",
"created_at": 0
}Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/videos/<task_id>/content' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/octet-stream'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| task_id | path | string | Diperlukan | — |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
<binary>Contoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/v1/audio/generations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}Respons
{
"id": "task_example",
"taskId": "task_example",
"object": "audio",
"status": "queued",
"created_at": 0
}Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/v1/audio/generations/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| task_id | path | string | Diperlukan | — |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"id": "task_example",
"taskId": "task_example",
"object": "audio",
"status": "queued",
"created_at": 0
}Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/v1/audio/generations/<task_id>/content' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/octet-stream'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| task_id | path | string | Diperlukan | — |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
<binary>Contoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/audio/generations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}Respons
{
"id": "task_example",
"taskId": "task_example",
"object": "audio",
"status": "queued",
"created_at": 0
}Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/audio/generations/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| task_id | path | string | Diperlukan | — |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"id": "task_example",
"taskId": "task_example",
"object": "audio",
"status": "queued",
"created_at": 0
}Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/audio/generations/<task_id>/content' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/octet-stream'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| task_id | path | string | Diperlukan | — |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
<binary>Contoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/v1/async-tasks/image-generations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"prompt": "A minimal paper sculpture of a cloud"
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-id",
"prompt": "A minimal paper sculpture of a cloud"
}Respons
{
"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
}Contoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/v1/async-tasks/video-generations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"prompt": "Slow aerial movement over a quiet coast",
"duration_seconds": 6,
"fps": 24
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-id",
"prompt": "Slow aerial movement over a quiet coast",
"duration_seconds": 6,
"fps": 24
}Respons
{
"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
}Contoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/v1/videos/generations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"prompt": "Slow aerial movement over a quiet coast",
"duration_seconds": 6,
"fps": 24
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-id",
"prompt": "Slow aerial movement over a quiet coast",
"duration_seconds": 6,
"fps": 24
}Respons
{
"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
}Contoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/v1/async-tasks/music-generations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"prompt": "Warm ambient music with soft piano",
"duration_seconds": 30
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-id",
"prompt": "Warm ambient music with soft piano",
"duration_seconds": 30
}Respons
{
"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
}Contoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/v1/music/generations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"prompt": "Warm ambient music with soft piano",
"duration_seconds": 30
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-id",
"prompt": "Warm ambient music with soft piano",
"duration_seconds": 30
}Respons
{
"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
}Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/v1/async-tasks' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"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"
}
]
}Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/v1/async-tasks/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| task_id | path | string | Diperlukan | — |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"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"
}
}Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/v1/tasks/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| task_id | path | string | Diperlukan | — |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"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"
}
}Contoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/v1/tasks/<task_id>/cancel' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| task_id | path | string | Diperlukan | — |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"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"
}
}Contoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/v1/async-tasks/<task_id>/cancel' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| task_id | path | string | Diperlukan | — |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"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"
}
}Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/v1/async-tasks/<task_id>/artifacts/<artifact_id>?tenant_id=<tenant_id>&expires_at=<expires_at>&signature=<signature>' \
--header 'Accept: application/octet-stream'Autentikasi
Tiada pengesahan diperlukan
Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| task_id | path | string | Diperlukan | — |
| artifact_id | path | string | Diperlukan | — |
| tenant_id | query | string | Diperlukan | — |
| expires_at | query | integer | Diperlukan | — |
| signature | query | string | Diperlukan | — |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
<binary>Mesej Anthropic
4 endpointGunakan mesej asli Anthropic, pengiraan token dan penemuan model.
Panggil titik akhir ini untuk melaksanakan operasi yang diterangkan.
POST /anthropic/v1/messagesContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/anthropic/v1/messages' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"max_tokens": 256,
"messages": [
{
"role": "user",
"content": "Explain edge computing briefly."
}
]
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | Pilihan | 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 | Pilihan | 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 | Pilihan | 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 | Pilihan | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-id",
"max_tokens": 256,
"messages": [
{
"role": "user",
"content": "Explain edge computing briefly."
}
]
}Respons
{
"id": "msg_example",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "Edge computing runs workloads near the data source."
}
]
}Contoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/anthropic/v1/messages/count_tokens' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}Respons
{
"input_tokens": 12
}Panggil titik akhir ini untuk melaksanakan operasi yang diterangkan.
POST /v1/messagesContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/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."
}
]
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | Pilihan | 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 | Pilihan | 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 | Pilihan | 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 | Pilihan | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-id",
"max_tokens": 256,
"messages": [
{
"role": "user",
"content": "Explain edge computing briefly."
}
]
}Respons
{
"id": "msg_example",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "Edge computing runs workloads near the data source."
}
]
}Contoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/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"
}
]
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}Respons
{
"input_tokens": 12
}Kandungan Gemini
4 endpointGunakan penjanaan kandungan dan penstriman asli Gemini.
Panggil titik akhir ini untuk melaksanakan operasi yang diterangkan.
POST /gemini/v1beta/models/{model}:generateContentContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/gemini/v1beta/models/<model>:generateContent' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| model | path | string | Diperlukan | — |
| X-Client-Message-Id | header | string | Pilihan | 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 | Pilihan | 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 | Pilihan | 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 | Pilihan | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}Respons
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "Edge computing reduces latency."
}
]
}
}
]
}Panggil titik akhir ini untuk melaksanakan operasi yang diterangkan.
POST /gemini/v1beta/models/{model}:streamGenerateContentContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/gemini/v1beta/models/<model>:streamGenerateContent' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: text/event-stream' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| model | path | string | Diperlukan | — |
| alt | query | string | Pilihan | — |
| X-Client-Message-Id | header | string | Pilihan | 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 | Pilihan | 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 | Pilihan | 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 | Pilihan | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}Respons
data: {"candidates":[{"content":{"role":"model","parts":[{"text":"Edge computing reduces latency."}]}}]}
Panggil titik akhir ini untuk melaksanakan operasi yang diterangkan.
POST /gemini/v1beta/models/{model}/generateContentContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/gemini/v1beta/models/<model>/generateContent' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| model | path | string | Diperlukan | — |
| X-Client-Message-Id | header | string | Pilihan | 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 | Pilihan | 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 | Pilihan | 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 | Pilihan | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}Respons
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "Edge computing reduces latency."
}
]
}
}
]
}Panggil titik akhir ini untuk melaksanakan operasi yang diterangkan.
POST /gemini/v1beta/models/{model}/streamGenerateContentContoh permintaan
curl \
--request POST \
--url 'https://api.anyint.ai/gemini/v1beta/models/<model>/streamGenerateContent' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: text/event-stream' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| model | path | string | Diperlukan | — |
| alt | query | string | Pilihan | — |
| X-Client-Message-Id | header | string | Pilihan | 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 | Pilihan | 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 | Pilihan | 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 | Pilihan | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | Pilihan | 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. |
Badan permintaan
Diperlukan{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}Respons
data: {"candidates":[{"content":{"role":"model","parts":[{"text":"Edge computing reduces latency."}]}}]}
Titik akhir lain (Knowledge Crystallization)
1 titik akhirExport crystallized AI conversation events for local Markdown notes sync.
Contoh permintaan
curl \
--request GET \
--url 'https://api.anyint.ai/v1/knowledge/export' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'Autentikasi
http · bearerLuluskan kunci API pembangun AnyInt sebagai token Bearer dalam pengepala Authorization.Parameter
| Nama | Lokasi | Taip | Diperlukan | Penerangan |
|---|---|---|---|---|
| cursor | query | string | Pilihan | — |
| limit | query | integer | Pilihan | — |
| collection_id | query | string | Pilihan | — |
| X-Request-Id | header | string | Pilihan | 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. |
Respons
{
"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"
}