APIリファレンス
OpenAI互換、Anthropic、Gemini、非同期メディアワークフロー全体で単一のゲートウェイとAPIキーを使用します。
- サーバー
https://api.anyint.aiこのOpenAPIドキュメントを提供しているAnyInt Gatewayのオリジン。
75 エンドポイント
ChatRoom 連携
4 エンドポイントDiscover key-scoped models and enterprise capabilities for independent ChatRoom clients.
リクエスト例
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"
]
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"request_ids": [
"req_example:async"
]
}レスポンス
{
"request_costs": [
{
"request_id": "req_example:async",
"credits": 125
}
]
}Native ChatRoom metadata authenticated with a Developer API key. Preserves existing tenant/key visibility and imported stable asset ownership references.
GET /v1/chatroom/modelsリクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/v1/chatroom/models?scope=<scope>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| scope | query | string | 必須 | — |
| limit | query | integer | 任意 | —例: 1000 |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"success": true,
"data": {
"models": [],
"total": 0
}
}Native ChatRoom metadata authenticated with a Developer API key. Preserves existing tenant/key visibility and imported stable asset ownership references.
GET /v1/chatroom/enterprise-contextリクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/v1/chatroom/enterprise-context' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"success": true,
"data": {
"featureControls": {
"seedanceAuthorizedAssets": false,
"videoDramaUsage": {
"enabled": false,
"dramaNames": []
}
}
}
}Native ChatRoom metadata authenticated with a Developer API key. Preserves existing tenant/key visibility and imported stable asset ownership references.
GET /v1/chatroom/key-contextリクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/v1/chatroom/key-context' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"success": true,
"data": {
"userId": "user_example",
"apiKeyId": "key_example",
"featureControls": {
"seedanceAuthorizedAssets": false,
"videoDramaUsage": {
"enabled": false,
"dramaNames": []
}
}
}
}チャット
2 エンドポイントOpenAI互換の会話応答を作成します。
このエンドポイントを呼び出して、説明されている操作を実行します。
POST /v1/chat/completionsリクエスト例
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."
}
]
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | 任意 | Opt in to durable tenant-scoped execution deduplication. Reuse only with the identical request body and API key. Completed or possibly dispatched requests never expire into another execution, including after Redis loss. Upstream errors or settlement rollback after dispatch require a new message ID for another execution; failures before dispatch may retry the same ID. |
| X-Resume-Message-Id | header | string | 任意 | Replay a previously generated SSE stream under the original API key and identical request body. This request does not dispatch or bill the provider. Cache retention is 10 minutes and total output is limited to 4 MiB; interrupted generations require a new message ID for continuation. |
| X-Resume-From-Offset | header | integer | 任意 | Number of complete SSE events already consumed, matching the last SSE id. Starts at 0; UTF-8 bytes, tokens and characters are not valid units. Takes precedence over Last-Event-ID. |
| Last-Event-ID | header | integer | 任意 | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Explain edge computing in 2 sentences."
}
]
}レスポンス
{
"id": "chatcmpl_example",
"object": "chat.completion",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Edge computing processes data near its source, reducing latency and bandwidth use."
},
"finish_reason": "stop"
}
]
}このエンドポイントを呼び出して、説明されている操作を実行します。
POST /openai/v1/chat/completionsリクエスト例
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."
}
]
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | 任意 | Opt in to durable tenant-scoped execution deduplication. Reuse only with the identical request body and API key. Completed or possibly dispatched requests never expire into another execution, including after Redis loss. Upstream errors or settlement rollback after dispatch require a new message ID for another execution; failures before dispatch may retry the same ID. |
| X-Resume-Message-Id | header | string | 任意 | Replay a previously generated SSE stream under the original API key and identical request body. This request does not dispatch or bill the provider. Cache retention is 10 minutes and total output is limited to 4 MiB; interrupted generations require a new message ID for continuation. |
| X-Resume-From-Offset | header | integer | 任意 | Number of complete SSE events already consumed, matching the last SSE id. Starts at 0; UTF-8 bytes, tokens and characters are not valid units. Takes precedence over Last-Event-ID. |
| Last-Event-ID | header | integer | 任意 | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Explain edge computing in 2 sentences."
}
]
}レスポンス
{
"id": "chatcmpl_example",
"object": "chat.completion",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Edge computing processes data near its source, reducing latency and bandwidth use."
},
"finish_reason": "stop"
}
]
}レスポンス
2 エンドポイントOpenAI応答APIの形式で応答を作成します。
このエンドポイントを呼び出して、説明されている操作を実行します。
POST /v1/responsesリクエスト例
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."
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | 任意 | Opt in to durable tenant-scoped execution deduplication. Reuse only with the identical request body and API key. Completed or possibly dispatched requests never expire into another execution, including after Redis loss. Upstream errors or settlement rollback after dispatch require a new message ID for another execution; failures before dispatch may retry the same ID. |
| X-Resume-Message-Id | header | string | 任意 | Replay a previously generated SSE stream under the original API key and identical request body. This request does not dispatch or bill the provider. Cache retention is 10 minutes and total output is limited to 4 MiB; interrupted generations require a new message ID for continuation. |
| X-Resume-From-Offset | header | integer | 任意 | Number of complete SSE events already consumed, matching the last SSE id. Starts at 0; UTF-8 bytes, tokens and characters are not valid units. Takes precedence over Last-Event-ID. |
| Last-Event-ID | header | integer | 任意 | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-id",
"input": "Write a short welcome message."
}レスポンス
{
"id": "resp_example",
"object": "response",
"status": "completed"
}このエンドポイントを呼び出して、説明されている操作を実行します。
POST /openai/v1/responsesリクエスト例
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."
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | 任意 | Opt in to durable tenant-scoped execution deduplication. Reuse only with the identical request body and API key. Completed or possibly dispatched requests never expire into another execution, including after Redis loss. Upstream errors or settlement rollback after dispatch require a new message ID for another execution; failures before dispatch may retry the same ID. |
| X-Resume-Message-Id | header | string | 任意 | Replay a previously generated SSE stream under the original API key and identical request body. This request does not dispatch or bill the provider. Cache retention is 10 minutes and total output is limited to 4 MiB; interrupted generations require a new message ID for continuation. |
| X-Resume-From-Offset | header | integer | 任意 | Number of complete SSE events already consumed, matching the last SSE id. Starts at 0; UTF-8 bytes, tokens and characters are not valid units. Takes precedence over Last-Event-ID. |
| Last-Event-ID | header | integer | 任意 | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-id",
"input": "Write a short welcome message."
}レスポンス
{
"id": "resp_example",
"object": "response",
"status": "completed"
}テキスト補完
2 エンドポイントレガシーなOpenAI互換のテキスト補完を作成します。
このエンドポイントを呼び出して、説明されている操作を実行します。
POST /v1/completionsリクエスト例
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"
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | 任意 | Opt in to durable tenant-scoped execution deduplication. Reuse only with the identical request body and API key. Completed or possibly dispatched requests never expire into another execution, including after Redis loss. Upstream errors or settlement rollback after dispatch require a new message ID for another execution; failures before dispatch may retry the same ID. |
| X-Resume-Message-Id | header | string | 任意 | Replay a previously generated SSE stream under the original API key and identical request body. This request does not dispatch or bill the provider. Cache retention is 10 minutes and total output is limited to 4 MiB; interrupted generations require a new message ID for continuation. |
| X-Resume-From-Offset | header | integer | 任意 | Number of complete SSE events already consumed, matching the last SSE id. Starts at 0; UTF-8 bytes, tokens and characters are not valid units. Takes precedence over Last-Event-ID. |
| Last-Event-ID | header | integer | 任意 | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-id",
"prompt": "Once upon a time"
}レスポンス
{
"id": "cmpl_example",
"object": "text_completion",
"choices": [
{
"index": 0,
"text": " there was a quiet coast."
}
]
}このエンドポイントを呼び出して、説明されている操作を実行します。
POST /openai/v1/completionsリクエスト例
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"
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | 任意 | Opt in to durable tenant-scoped execution deduplication. Reuse only with the identical request body and API key. Completed or possibly dispatched requests never expire into another execution, including after Redis loss. Upstream errors or settlement rollback after dispatch require a new message ID for another execution; failures before dispatch may retry the same ID. |
| X-Resume-Message-Id | header | string | 任意 | Replay a previously generated SSE stream under the original API key and identical request body. This request does not dispatch or bill the provider. Cache retention is 10 minutes and total output is limited to 4 MiB; interrupted generations require a new message ID for continuation. |
| X-Resume-From-Offset | header | integer | 任意 | Number of complete SSE events already consumed, matching the last SSE id. Starts at 0; UTF-8 bytes, tokens and characters are not valid units. Takes precedence over Last-Event-ID. |
| Last-Event-ID | header | integer | 任意 | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-id",
"prompt": "Once upon a time"
}レスポンス
{
"id": "cmpl_example",
"object": "text_completion",
"choices": [
{
"index": 0,
"text": " there was a quiet coast."
}
]
}埋め込み
2 エンドポイントテキスト入力からベクトル埋め込みを作成します。
リクエスト例
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"
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-id",
"input": "A calm ocean at dawn"
}レスポンス
{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [
0.012,
-0.008,
0.021
]
}
]
}リクエスト例
curl \
--request POST \
--url 'https://api.anyint.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"
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-id",
"input": "A calm ocean at dawn"
}レスポンス
{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [
0.012,
-0.008,
0.021
]
}
]
}モデレーション
2 エンドポイント潜在的に有害なテキストまたは画像の入力を分類します。
リクエスト例
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"
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"input": "Text to classify"
}レスポンス
{
"id": "modr_example",
"model": "your-model-id",
"results": [
{
"flagged": false,
"categories": {},
"category_scores": {}
}
]
}リクエスト例
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/moderations' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"input": "Text to classify"
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"input": "Text to classify"
}レスポンス
{
"id": "modr_example",
"model": "your-model-id",
"results": [
{
"flagged": false,
"categories": {},
"category_scores": {}
}
]
}バッチ
8 エンドポイントデプロイメントでオブジェクトストレージが有効になっている場合に、プロバイダーネイティブの JSONL バッチを送信します。
リクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/v1/batches' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| after | query | string | 任意 | — |
| limit | query | integer | 任意 | —例: 20 |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"object": "list",
"data": [
{
"id": "batch_example",
"object": "batch",
"endpoint": "/v1/chat/completions",
"input_file_id": "file_example",
"completion_window": "24h",
"status": "in_progress",
"created_at": 1700000000,
"request_counts": {
"total": 100,
"completed": 0,
"failed": 0
}
}
],
"first_id": "batch_example",
"last_id": "batch_example",
"has_more": false
}Native prepaid batches validate the stored file checksum and strict JSONL before funding. Every item needs a server-owned execution policy for its pinned route and price, including file-upload and batch-create transport bounds. All item reservations commit atomically before provider submission; insufficient aggregate funds return HTTP 402 without submitting a partial batch. Incompatible provider configurations must be split into separate batches. Each submission permits one file upload and one batch create; an ambiguous submission returns batch_submission_recovery_required and retains funding without automatic resubmission. Failed, cancelled or missing item results do not prove zero provider cost and retain funding for reconciliation.
POST /v1/batchesリクエスト例
curl \
--request POST \
--url 'https://api.anyint.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"
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。リクエストボディ
必須{
"input_file_id": "file_example",
"endpoint": "/v1/chat/completions",
"completion_window": "24h"
}レスポンス
{
"id": "batch_example",
"object": "batch",
"endpoint": "/v1/chat/completions",
"input_file_id": "file_example",
"completion_window": "24h",
"status": "in_progress",
"created_at": 1700000000,
"request_counts": {
"total": 100,
"completed": 0,
"failed": 0
}
}リクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/batches' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| after | query | string | 任意 | — |
| limit | query | integer | 任意 | —例: 20 |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"object": "list",
"data": [
{
"id": "batch_example",
"object": "batch",
"endpoint": "/v1/chat/completions",
"input_file_id": "file_example",
"completion_window": "24h",
"status": "in_progress",
"created_at": 1700000000,
"request_counts": {
"total": 100,
"completed": 0,
"failed": 0
}
}
],
"first_id": "batch_example",
"last_id": "batch_example",
"has_more": false
}Native prepaid batches validate the stored file checksum and strict JSONL before funding. Every item needs a server-owned execution policy for its pinned route and price, including file-upload and batch-create transport bounds. All item reservations commit atomically before provider submission; insufficient aggregate funds return HTTP 402 without submitting a partial batch. Incompatible provider configurations must be split into separate batches. Each submission permits one file upload and one batch create; an ambiguous submission returns batch_submission_recovery_required and retains funding without automatic resubmission. Failed, cancelled or missing item results do not prove zero provider cost and retain funding for reconciliation.
POST /openai/v1/batchesリクエスト例
curl \
--request POST \
--url 'https://api.anyint.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"
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。リクエストボディ
必須{
"input_file_id": "file_example",
"endpoint": "/v1/chat/completions",
"completion_window": "24h"
}レスポンス
{
"id": "batch_example",
"object": "batch",
"endpoint": "/v1/chat/completions",
"input_file_id": "file_example",
"completion_window": "24h",
"status": "in_progress",
"created_at": 1700000000,
"request_counts": {
"total": 100,
"completed": 0,
"failed": 0
}
}リクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/v1/batches/<batch_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| batch_id | path | string | 必須 | — |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"id": "batch_example",
"object": "batch",
"endpoint": "/v1/chat/completions",
"input_file_id": "file_example",
"completion_window": "24h",
"status": "in_progress",
"created_at": 1700000000,
"request_counts": {
"total": 100,
"completed": 0,
"failed": 0
}
}リクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/batches/<batch_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| batch_id | path | string | 必須 | — |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"id": "batch_example",
"object": "batch",
"endpoint": "/v1/chat/completions",
"input_file_id": "file_example",
"completion_window": "24h",
"status": "in_progress",
"created_at": 1700000000,
"request_counts": {
"total": 100,
"completed": 0,
"failed": 0
}
}リクエスト例
curl \
--request POST \
--url 'https://api.anyint.ai/v1/batches/<batch_id>/cancel' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| batch_id | path | string | 必須 | — |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"id": "batch_example",
"object": "batch",
"endpoint": "/v1/chat/completions",
"input_file_id": "file_example",
"completion_window": "24h",
"status": "in_progress",
"created_at": 1700000000,
"request_counts": {
"total": 100,
"completed": 0,
"failed": 0
}
}リクエスト例
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/batches/<batch_id>/cancel' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| batch_id | path | string | 必須 | — |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"id": "batch_example",
"object": "batch",
"endpoint": "/v1/chat/completions",
"input_file_id": "file_example",
"completion_window": "24h",
"status": "in_progress",
"created_at": 1700000000,
"request_counts": {
"total": 100,
"completed": 0,
"failed": 0
}
}ファイル
5 エンドポイントファイルのアップロード、一覧表示、検査、ダウンロードを行います。
リクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/files' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"object": "list",
"data": [
{
"id": "file_example",
"object": "file",
"bytes": 128,
"created_at": 1700000000,
"filename": "document.jsonl",
"purpose": "batch",
"status": "processed"
}
]
}コンテンツを保存する前に、API key の IP および 1 分あたりのリクエスト数のポリシーを適用します。アップロードはモデルに依存せず、推論クォータを消費しません。expires_after でより短い有効期間(1 時間〜30 日)を指定しない限り、ファイルはアップロードから 30 日後に期限切れになります。期限切れのファイルは一覧に表示されず、ダウンロードできなくなり、削除されます。各テナントが保持できる有効なファイルは最大 10,000 件、合計 10 GiB までです。
POST /openai/v1/filesリクエスト例
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'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"file": "document.jsonl",
"purpose": "batch"
}レスポンス
{
"id": "file_example",
"object": "file",
"bytes": 128,
"created_at": 1700000000,
"filename": "document.jsonl",
"purpose": "batch",
"status": "processed"
}リクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/files/<file_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| file_id | path | string | 必須 | — |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"id": "file_example",
"object": "file",
"bytes": 128,
"created_at": 1700000000,
"filename": "document.jsonl",
"purpose": "batch",
"status": "processed"
}リクエスト例
curl \
--request DELETE \
--url 'https://api.anyint.ai/openai/v1/files/<file_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| file_id | path | string | 必須 | — |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"id": "file_example",
"object": "file",
"deleted": true
}リクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/files/<file_id>/content' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/octet-stream'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| file_id | path | string | 必須 | — |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
<binary>オーディオ
3 エンドポイントオーディオの文字起こし、英語への翻訳、または音声合成を行います。
Native prepaid organizations reserve the greater of customer and provider maximum costs before audio provider dispatch. A missing or mismatched server-owned execution bound returns non-retryable HTTP 503 prepaid_execution_bound_unavailable. Multipart bounds include file sizes and content hashes. Insufficient funds return HTTP 402. Successful responses require the configured billable usage; missing required usage returns HTTP 502 and retains funding. Provider errors or unknown outcomes retain funding for audited recovery. Personal and postpaid audio behavior is preserved.
POST /openai/v1/audio/transcriptionsリクエスト例
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'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"file": "audio.wav",
"model": "your-model-id"
}レスポンス
{
"text": "Example transcript."
}Native prepaid organizations reserve the greater of customer and provider maximum costs before audio provider dispatch. A missing or mismatched server-owned execution bound returns non-retryable HTTP 503 prepaid_execution_bound_unavailable. Multipart bounds include file sizes and content hashes. Insufficient funds return HTTP 402. Successful responses require the configured billable usage; missing required usage returns HTTP 502 and retains funding. Provider errors or unknown outcomes retain funding for audited recovery. Personal and postpaid audio behavior is preserved.
POST /openai/v1/audio/translationsリクエスト例
curl \
--request POST \
--url 'https://api.anyint.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'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"file": "audio.wav",
"model": "your-model-id"
}レスポンス
{
"text": "Example transcript."
}Native prepaid organizations reserve the greater of customer and provider maximum costs before audio provider dispatch. A missing or mismatched server-owned execution bound returns non-retryable HTTP 503 prepaid_execution_bound_unavailable. Multipart bounds include file sizes and content hashes. Insufficient funds return HTTP 402. Successful responses require the configured billable usage; missing required usage returns HTTP 502 and retains funding. Provider errors or unknown outcomes retain funding for audited recovery. Personal and postpaid audio behavior is preserved.
POST /openai/v1/audio/speechリクエスト例
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."
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-id",
"voice": "your-voice-id",
"input": "Welcome to AnyInt Gateway."
}レスポンス
<binary>画像
4 エンドポイントGenerate and edit images with OpenAI-compatible requests.
このエンドポイントを呼び出して、説明されている操作を実行します。
POST /v1/images/editsリクエスト例
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"
}
]
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-id",
"prompt": "Combine these reference images on a soft blue background.",
"images": [
{
"image_url": "https://cdn.example.com/reference-1.png"
},
{
"image_url": "https://cdn.example.com/reference-2.png"
}
]
}レスポンス
{
"created": 1700000000,
"data": [
{
"b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB"
}
]
}このエンドポイントを呼び出して、説明されている操作を実行します。
POST /openai/v1/images/editsリクエスト例
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"
}
]
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-id",
"prompt": "Combine these reference images on a soft blue background.",
"images": [
{
"image_url": "https://cdn.example.com/reference-1.png"
},
{
"image_url": "https://cdn.example.com/reference-2.png"
}
]
}レスポンス
{
"created": 1700000000,
"data": [
{
"b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB"
}
]
}このエンドポイントを呼び出して、説明されている操作を実行します。
POST /v1/images/generationsリクエスト例
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
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-id",
"prompt": "A minimal paper sculpture of a cloud",
"n": 1
}レスポンス
{
"created": 1700000000,
"data": [
{
"b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB"
}
]
}このエンドポイントを呼び出して、説明されている操作を実行します。
POST /openai/v1/images/generationsリクエスト例
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
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-id",
"prompt": "A minimal paper sculpture of a cloud",
"n": 1
}レスポンス
{
"created": 1700000000,
"data": [
{
"b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB"
}
]
}モデル
4 エンドポイント各プロトコルで利用可能なモデルを検出する
リクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/models' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"object": "list",
"data": [
{
"id": "your-model-id",
"object": "model",
"created": 1767225600,
"owned_by": "configured-provider"
}
]
}リクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/v1/models' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"object": "list",
"data": [
{
"id": "your-model-id",
"object": "model",
"created": 1767225600,
"owned_by": "configured-provider"
}
]
}リクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/anthropic/v1/models' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"data": [
{
"id": "your-model-id",
"type": "model",
"display_name": "Configured model",
"created_at": "2026-01-01T00:00:00.000Z"
}
],
"has_more": false,
"first_id": "your-model-id",
"last_id": "your-model-id"
}リクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/gemini/v1beta/models' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"models": [
{
"name": "models/your-model-id",
"displayName": "Configured model",
"supportedGenerationMethods": [
"generateContent"
],
"inputTokenLimit": 8192,
"outputTokenLimit": 8192
}
]
}Async Media
23 エンドポイント非同期の画像、ビデオ、音楽ジョブを作成および検査します。
Seedance は、有効な画像および動画の asset:// 参照を受け付けます。reference_image と reference_video が混在するコンテンツにも対応します。各参照は企業の現在のアセットライブラリに属している必要があります。互換性のないライブラリの参照は、ルーティング、タスク作成、またはアップストリームへの送信前に HTTP 400 authorized_asset_provider_mismatch、retryable=false、user_action=simplify_input を返します。再試行する前に、参照している画像と動画を現在のライブラリに登録し、参照を更新してください。
POST /v1/videosリクエスト例
curl \
--request POST \
--url 'https://api.anyint.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
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}レスポンス
{
"id": "task_example",
"taskId": "task_example",
"object": "video",
"status": "queued",
"created_at": 0
}リクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/v1/videos/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| task_id | path | string | 必須 | — |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"id": "task_example",
"taskId": "task_example",
"object": "video",
"status": "queued",
"created_at": 0
}リクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/v1/videos/<task_id>/content' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/octet-stream'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| task_id | path | string | 必須 | — |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
<binary>Seedance は、有効な画像および動画の asset:// 参照を受け付けます。reference_image と reference_video が混在するコンテンツにも対応します。各参照は企業の現在のアセットライブラリに属している必要があります。互換性のないライブラリの参照は、ルーティング、タスク作成、またはアップストリームへの送信前に HTTP 400 authorized_asset_provider_mismatch、retryable=false、user_action=simplify_input を返します。再試行する前に、参照している画像と動画を現在のライブラリに登録し、参照を更新してください。
POST /openai/v1/videosリクエスト例
curl \
--request POST \
--url 'https://api.anyint.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
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}レスポンス
{
"id": "task_example",
"taskId": "task_example",
"object": "video",
"status": "queued",
"created_at": 0
}リクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/videos/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| task_id | path | string | 必須 | — |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"id": "task_example",
"taskId": "task_example",
"object": "video",
"status": "queued",
"created_at": 0
}リクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/videos/<task_id>/content' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/octet-stream'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| task_id | path | string | 必須 | — |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
<binary>リクエスト例
curl \
--request POST \
--url 'https://api.anyint.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
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}レスポンス
{
"id": "task_example",
"taskId": "task_example",
"object": "audio",
"status": "queued",
"created_at": 0
}リクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/v1/audio/generations/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| task_id | path | string | 必須 | — |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"id": "task_example",
"taskId": "task_example",
"object": "audio",
"status": "queued",
"created_at": 0
}リクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/v1/audio/generations/<task_id>/content' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/octet-stream'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| task_id | path | string | 必須 | — |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
<binary>リクエスト例
curl \
--request POST \
--url 'https://api.anyint.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
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}レスポンス
{
"id": "task_example",
"taskId": "task_example",
"object": "audio",
"status": "queued",
"created_at": 0
}リクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/audio/generations/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| task_id | path | string | 必須 | — |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"id": "task_example",
"taskId": "task_example",
"object": "audio",
"status": "queued",
"created_at": 0
}リクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/openai/v1/audio/generations/<task_id>/content' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/octet-stream'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| task_id | path | string | 必須 | — |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
<binary>リクエスト例
curl \
--request POST \
--url 'https://api.anyint.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"
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-id",
"prompt": "A minimal paper sculpture of a cloud"
}レスポンス
{
"object": "async_task",
"task": {
"id": "task_example",
"requestId": "req_example",
"tenantId": "tenant_example",
"protocol": "openai",
"taskType": "image_generation",
"status": "submitted",
"input": {
"prompt": "Example prompt"
},
"artifacts": [],
"artifactCount": 0,
"artifact_count": 0,
"billingSessions": [],
"billing_sessions": [],
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
},
"anyint": {
"request_id": "req_example",
"route_decision_id": "route_example"
},
"duplicate": true
}リクエスト例
curl \
--request POST \
--url 'https://api.anyint.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
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-id",
"prompt": "Slow aerial movement over a quiet coast",
"duration_seconds": 6,
"fps": 24
}レスポンス
{
"object": "async_task",
"task": {
"id": "task_example",
"requestId": "req_example",
"tenantId": "tenant_example",
"protocol": "openai",
"taskType": "video_generation",
"status": "submitted",
"input": {
"prompt": "Example prompt"
},
"artifacts": [],
"artifactCount": 0,
"artifact_count": 0,
"billingSessions": [],
"billing_sessions": [],
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
},
"anyint": {
"request_id": "req_example",
"route_decision_id": "route_example"
},
"duplicate": true
}リクエスト例
curl \
--request 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
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-id",
"prompt": "Slow aerial movement over a quiet coast",
"duration_seconds": 6,
"fps": 24
}レスポンス
{
"object": "async_task",
"task": {
"id": "task_example",
"requestId": "req_example",
"tenantId": "tenant_example",
"protocol": "openai",
"taskType": "video_generation",
"status": "submitted",
"input": {
"prompt": "Example prompt"
},
"artifacts": [],
"artifactCount": 0,
"artifact_count": 0,
"billingSessions": [],
"billing_sessions": [],
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
},
"anyint": {
"request_id": "req_example",
"route_decision_id": "route_example"
},
"duplicate": true
}リクエスト例
curl \
--request 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
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-id",
"prompt": "Warm ambient music with soft piano",
"duration_seconds": 30
}レスポンス
{
"object": "async_task",
"task": {
"id": "task_example",
"requestId": "req_example",
"tenantId": "tenant_example",
"protocol": "openai",
"taskType": "music_generation",
"status": "submitted",
"input": {
"prompt": "Example prompt"
},
"artifacts": [],
"artifactCount": 0,
"artifact_count": 0,
"billingSessions": [],
"billing_sessions": [],
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
},
"anyint": {
"request_id": "req_example",
"route_decision_id": "route_example"
},
"duplicate": true
}リクエスト例
curl \
--request POST \
--url 'https://api.anyint.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
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-id",
"prompt": "Warm ambient music with soft piano",
"duration_seconds": 30
}レスポンス
{
"object": "async_task",
"task": {
"id": "task_example",
"requestId": "req_example",
"tenantId": "tenant_example",
"protocol": "openai",
"taskType": "music_generation",
"status": "submitted",
"input": {
"prompt": "Example prompt"
},
"artifacts": [],
"artifactCount": 0,
"artifact_count": 0,
"billingSessions": [],
"billing_sessions": [],
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
},
"anyint": {
"request_id": "req_example",
"route_decision_id": "route_example"
},
"duplicate": true
}リクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/v1/async-tasks' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"object": "list",
"data": [
{
"id": "task_example",
"requestId": "req_example",
"tenantId": "tenant_example",
"protocol": "openai",
"taskType": "image_generation",
"status": "queued",
"input": {
"prompt": "Example prompt"
},
"artifacts": [],
"artifactCount": 0,
"artifact_count": 0,
"billingSessions": [],
"billing_sessions": [],
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}
]
}リクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/v1/async-tasks/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| task_id | path | string | 必須 | — |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"object": "async_task",
"task": {
"id": "task_example",
"requestId": "req_example",
"tenantId": "tenant_example",
"protocol": "openai",
"taskType": "image_generation",
"status": "queued",
"input": {
"prompt": "Example prompt"
},
"artifacts": [],
"artifactCount": 0,
"artifact_count": 0,
"billingSessions": [],
"billing_sessions": [],
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}
}リクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/v1/tasks/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| task_id | path | string | 必須 | — |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"object": "generation_task",
"task": {
"id": "task_example",
"requestId": "req_example",
"tenantId": "tenant_example",
"protocol": "openai",
"taskType": "image_generation",
"status": "queued",
"input": {
"prompt": "Example prompt"
},
"artifacts": [],
"artifactCount": 0,
"artifact_count": 0,
"billingSessions": [],
"billing_sessions": [],
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}
}リクエスト例
curl \
--request POST \
--url 'https://api.anyint.ai/v1/tasks/<task_id>/cancel' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| task_id | path | string | 必須 | — |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"object": "generation_task",
"task": {
"id": "task_example",
"requestId": "req_example",
"tenantId": "tenant_example",
"protocol": "openai",
"taskType": "image_generation",
"status": "queued",
"input": {
"prompt": "Example prompt"
},
"artifacts": [],
"artifactCount": 0,
"artifact_count": 0,
"billingSessions": [],
"billing_sessions": [],
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}
}リクエスト例
curl \
--request POST \
--url 'https://api.anyint.ai/v1/async-tasks/<task_id>/cancel' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| task_id | path | string | 必須 | — |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"object": "generation_task",
"task": {
"id": "task_example",
"requestId": "req_example",
"tenantId": "tenant_example",
"protocol": "openai",
"taskType": "image_generation",
"status": "queued",
"input": {
"prompt": "Example prompt"
},
"artifacts": [],
"artifactCount": 0,
"artifact_count": 0,
"billingSessions": [],
"billing_sessions": [],
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}
}リクエスト例
curl \
--request 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'認証
認証は不要です
パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| task_id | path | string | 必須 | — |
| artifact_id | path | string | 必須 | — |
| tenant_id | query | string | 必須 | — |
| expires_at | query | integer | 必須 | — |
| signature | query | string | 必須 | — |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
<binary>Anthropic Messages
4 エンドポイントAnthropicネイティブのメッセージ、トークンカウント、モデル検出を使用します。
このエンドポイントを呼び出して、説明されている操作を実行します。
POST /anthropic/v1/messagesリクエスト例
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."
}
]
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | 任意 | Opt in to durable tenant-scoped execution deduplication. Reuse only with the identical request body and API key. Completed or possibly dispatched requests never expire into another execution, including after Redis loss. Upstream errors or settlement rollback after dispatch require a new message ID for another execution; failures before dispatch may retry the same ID. |
| X-Resume-Message-Id | header | string | 任意 | Replay a previously generated SSE stream under the original API key and identical request body. This request does not dispatch or bill the provider. Cache retention is 10 minutes and total output is limited to 4 MiB; interrupted generations require a new message ID for continuation. |
| X-Resume-From-Offset | header | integer | 任意 | Number of complete SSE events already consumed, matching the last SSE id. Starts at 0; UTF-8 bytes, tokens and characters are not valid units. Takes precedence over Last-Event-ID. |
| Last-Event-ID | header | integer | 任意 | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-id",
"max_tokens": 256,
"messages": [
{
"role": "user",
"content": "Explain edge computing briefly."
}
]
}レスポンス
{
"id": "msg_example",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "Edge computing runs workloads near the data source."
}
]
}リクエスト例
curl \
--request POST \
--url 'https://api.anyint.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"
}
]
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}レスポンス
{
"input_tokens": 12
}このエンドポイントを呼び出して、説明されている操作を実行します。
POST /v1/messagesリクエスト例
curl \
--request POST \
--url 'https://api.anyint.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."
}
]
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Client-Message-Id | header | string | 任意 | Opt in to durable tenant-scoped execution deduplication. Reuse only with the identical request body and API key. Completed or possibly dispatched requests never expire into another execution, including after Redis loss. Upstream errors or settlement rollback after dispatch require a new message ID for another execution; failures before dispatch may retry the same ID. |
| X-Resume-Message-Id | header | string | 任意 | Replay a previously generated SSE stream under the original API key and identical request body. This request does not dispatch or bill the provider. Cache retention is 10 minutes and total output is limited to 4 MiB; interrupted generations require a new message ID for continuation. |
| X-Resume-From-Offset | header | integer | 任意 | Number of complete SSE events already consumed, matching the last SSE id. Starts at 0; UTF-8 bytes, tokens and characters are not valid units. Takes precedence over Last-Event-ID. |
| Last-Event-ID | header | integer | 任意 | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-id",
"max_tokens": 256,
"messages": [
{
"role": "user",
"content": "Explain edge computing briefly."
}
]
}レスポンス
{
"id": "msg_example",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "Edge computing runs workloads near the data source."
}
]
}リクエスト例
curl \
--request POST \
--url 'https://api.anyint.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"
}
]
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}レスポンス
{
"input_tokens": 12
}Gemini Content
4 エンドポイントGeminiネイティブのコンテンツ生成とストリーミングを使用します。
このエンドポイントを呼び出して、説明されている操作を実行します。
POST /gemini/v1beta/models/{model}:generateContentリクエスト例
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."
}
]
}
]
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| model | path | string | 必須 | — |
| X-Client-Message-Id | header | string | 任意 | Opt in to durable tenant-scoped execution deduplication. Reuse only with the identical request body and API key. Completed or possibly dispatched requests never expire into another execution, including after Redis loss. Upstream errors or settlement rollback after dispatch require a new message ID for another execution; failures before dispatch may retry the same ID. |
| X-Resume-Message-Id | header | string | 任意 | Replay a previously generated SSE stream under the original API key and identical request body. This request does not dispatch or bill the provider. Cache retention is 10 minutes and total output is limited to 4 MiB; interrupted generations require a new message ID for continuation. |
| X-Resume-From-Offset | header | integer | 任意 | Number of complete SSE events already consumed, matching the last SSE id. Starts at 0; UTF-8 bytes, tokens and characters are not valid units. Takes precedence over Last-Event-ID. |
| Last-Event-ID | header | integer | 任意 | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}レスポンス
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "Edge computing reduces latency."
}
]
}
}
]
}このエンドポイントを呼び出して、説明されている操作を実行します。
POST /gemini/v1beta/models/{model}:streamGenerateContentリクエスト例
curl \
--request POST \
--url 'https://api.anyint.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."
}
]
}
]
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| model | path | string | 必須 | — |
| alt | query | string | 任意 | — |
| X-Client-Message-Id | header | string | 任意 | Opt in to durable tenant-scoped execution deduplication. Reuse only with the identical request body and API key. Completed or possibly dispatched requests never expire into another execution, including after Redis loss. Upstream errors or settlement rollback after dispatch require a new message ID for another execution; failures before dispatch may retry the same ID. |
| X-Resume-Message-Id | header | string | 任意 | Replay a previously generated SSE stream under the original API key and identical request body. This request does not dispatch or bill the provider. Cache retention is 10 minutes and total output is limited to 4 MiB; interrupted generations require a new message ID for continuation. |
| X-Resume-From-Offset | header | integer | 任意 | Number of complete SSE events already consumed, matching the last SSE id. Starts at 0; UTF-8 bytes, tokens and characters are not valid units. Takes precedence over Last-Event-ID. |
| Last-Event-ID | header | integer | 任意 | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}レスポンス
data: {"candidates":[{"content":{"role":"model","parts":[{"text":"Edge computing reduces latency."}]}}]}
このエンドポイントを呼び出して、説明されている操作を実行します。
POST /gemini/v1beta/models/{model}/generateContentリクエスト例
curl \
--request POST \
--url 'https://api.anyint.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."
}
]
}
]
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| model | path | string | 必須 | — |
| X-Client-Message-Id | header | string | 任意 | Opt in to durable tenant-scoped execution deduplication. Reuse only with the identical request body and API key. Completed or possibly dispatched requests never expire into another execution, including after Redis loss. Upstream errors or settlement rollback after dispatch require a new message ID for another execution; failures before dispatch may retry the same ID. |
| X-Resume-Message-Id | header | string | 任意 | Replay a previously generated SSE stream under the original API key and identical request body. This request does not dispatch or bill the provider. Cache retention is 10 minutes and total output is limited to 4 MiB; interrupted generations require a new message ID for continuation. |
| X-Resume-From-Offset | header | integer | 任意 | Number of complete SSE events already consumed, matching the last SSE id. Starts at 0; UTF-8 bytes, tokens and characters are not valid units. Takes precedence over Last-Event-ID. |
| Last-Event-ID | header | integer | 任意 | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}レスポンス
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "Edge computing reduces latency."
}
]
}
}
]
}このエンドポイントを呼び出して、説明されている操作を実行します。
POST /gemini/v1beta/models/{model}/streamGenerateContentリクエスト例
curl \
--request POST \
--url 'https://api.anyint.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."
}
]
}
]
}'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| model | path | string | 必須 | — |
| alt | query | string | 任意 | — |
| X-Client-Message-Id | header | string | 任意 | Opt in to durable tenant-scoped execution deduplication. Reuse only with the identical request body and API key. Completed or possibly dispatched requests never expire into another execution, including after Redis loss. Upstream errors or settlement rollback after dispatch require a new message ID for another execution; failures before dispatch may retry the same ID. |
| X-Resume-Message-Id | header | string | 任意 | Replay a previously generated SSE stream under the original API key and identical request body. This request does not dispatch or bill the provider. Cache retention is 10 minutes and total output is limited to 4 MiB; interrupted generations require a new message ID for continuation. |
| X-Resume-From-Offset | header | integer | 任意 | Number of complete SSE events already consumed, matching the last SSE id. Starts at 0; UTF-8 bytes, tokens and characters are not valid units. Takes precedence over Last-Event-ID. |
| Last-Event-ID | header | integer | 任意 | Alternative complete SSE event offset when X-Resume-From-Offset is absent. |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
リクエストボディ
必須{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}レスポンス
data: {"candidates":[{"content":{"role":"model","parts":[{"text":"Edge computing reduces latency."}]}}]}
その他のエンドポイント (Knowledge Crystallization)
1 エンドポイントExport crystallized AI conversation events for local Markdown notes sync.
リクエスト例
curl \
--request GET \
--url 'https://api.anyint.ai/v1/knowledge/export' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'認証
http · bearerAnyInt開発者APIキーをAuthorizationヘッダーのBearerトークンとして渡します。パラメーター
| 名前 | 場所 | タイプ | 必須 | 説明 |
|---|---|---|---|---|
| cursor | query | string | 任意 | — |
| limit | query | integer | 任意 | — |
| collection_id | query | string | 任意 | — |
| X-Request-Id | header | string | 任意 | Optional client correlation ID. Valid values (8–128 letters, digits, dots, underscores, colons or dashes) are retained only as a diagnostic hash. This header does not deduplicate requests. Each HTTP request receives a fresh gateway execution ID in the X-Request-Id response header; use that returned ID for support and request traces. Use the documented message recovery protocol for execution deduplication. |
レスポンス
{
"schema_version": "1.0.0",
"collection_id": "default",
"collection_generation": 1,
"events": [],
"next_cursor": null,
"has_more": false,
"snapshot_upper_bound": "2026-09-30T10:00:00.000Z",
"pending_summary": {
"pending_event_count": 0
},
"status": "OK"
}