API संदर्भ
OpenAI-संगत, Anthropic, Gemini और एसिंक्रोनस मीडिया वर्कफ़्लो में एक गेटवे और API कुंजी का उपयोग करें।
- सर्वर
https://api.anyint.aiयह OpenAPI दस्तावेज़ सर्व करने वाला AnyInt गेटवे ओरिजिन।
74 एंडपॉइंट
ChatRoom एकीकरण
3 एंडपॉइंटDiscover key-scoped models and enterprise capabilities for independent ChatRoom clients.
Permanent ChatRoom integration authenticated with a Developer API key. Independent of legacy compatibility flags and sunset. Preserves tenant/key visibility and imported stable ownership references without calling the old core. Identity sessions must first obtain an execution credential through the authenticated BFF product-credential contract.
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| scope | query | string | आवश्यक | — |
| limit | query | integer | वैकल्पिक | —उदाहरण: 1000 |
प्रतिक्रियाएँ
{
"success": true,
"data": {
"models": [],
"total": 0
}
}Permanent ChatRoom integration authenticated with a Developer API key. Independent of legacy compatibility flags and sunset. Preserves tenant/key visibility and imported stable ownership references without calling the old core. Identity sessions must first obtain an execution credential through the authenticated BFF product-credential contract.
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।प्रतिक्रियाएँ
{
"success": true,
"data": {
"featureControls": {
"seedanceAuthorizedAssets": false
}
}
}Permanent ChatRoom integration authenticated with a Developer API key. Independent of legacy compatibility flags and sunset. Preserves tenant/key visibility and imported stable ownership references without calling the old core. Identity sessions must first obtain an execution credential through the authenticated BFF product-credential contract.
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।प्रतिक्रियाएँ
{
"success": true,
"data": {
"userId": "user_example",
"apiKeyId": "key_example",
"featureControls": {
"seedanceAuthorizedAssets": false
}
}
}चैट
2 एंडपॉइंटOpenAI-संगत संवादात्मक प्रतिक्रियाएं बनाएं।
अनुरोध उदाहरण
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"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"
}
]
}अनुरोध उदाहरण
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Explain edge computing in 2 sentences."
}
]
}प्रतिक्रियाएँ
{
"id": "chatcmpl_example",
"object": "chat.completion",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Edge computing processes data near its source, reducing latency and bandwidth use."
},
"finish_reason": "stop"
}
]
}प्रतिक्रियाएँ
2 एंडपॉइंटOpenAI Responses API आकार के साथ प्रतिक्रियाएं बनाएं।
अनुरोध उदाहरण
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"model": "your-model-id",
"input": "Write a short welcome message."
}प्रतिक्रियाएँ
{
"id": "resp_example",
"object": "response",
"status": "completed"
}अनुरोध उदाहरण
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"model": "your-model-id",
"input": "Write a short welcome message."
}प्रतिक्रियाएँ
{
"id": "resp_example",
"object": "response",
"status": "completed"
}टेक्स्ट पूर्णता
2 एंडपॉइंटलिगेसी OpenAI-संगत टेक्स्ट कंप्लीशन बनाएं।
अनुरोध उदाहरण
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"model": "your-model-id",
"prompt": "Once upon a time"
}प्रतिक्रियाएँ
{
"id": "cmpl_example",
"object": "text_completion",
"choices": [
{
"index": 0,
"text": " there was a quiet coast."
}
]
}अनुरोध उदाहरण
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| after | query | string | वैकल्पिक | — |
| limit | query | integer | वैकल्पिक | —उदाहरण: 20 |
प्रतिक्रियाएँ
{
"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
}अनुरोध उदाहरण
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| after | query | string | वैकल्पिक | — |
| limit | query | integer | वैकल्पिक | —उदाहरण: 20 |
प्रतिक्रियाएँ
{
"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
}अनुरोध उदाहरण
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| batch_id | path | string | आवश्यक | — |
प्रतिक्रियाएँ
{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| batch_id | path | string | आवश्यक | — |
प्रतिक्रियाएँ
{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| batch_id | path | string | आवश्यक | — |
प्रतिक्रियाएँ
{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| batch_id | path | string | आवश्यक | — |
प्रतिक्रियाएँ
{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।प्रतिक्रियाएँ
{
"object": "list",
"data": [
{
"id": "file_example",
"object": "file",
"bytes": 128,
"created_at": 1700000000,
"filename": "document.jsonl",
"purpose": "batch",
"status": "processed"
}
]
}अनुरोध उदाहरण
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| file_id | path | string | आवश्यक | — |
प्रतिक्रियाएँ
{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| file_id | path | string | आवश्यक | — |
प्रतिक्रियाएँ
{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| file_id | path | string | आवश्यक | — |
प्रतिक्रियाएँ
<binary>ऑडियो
3 एंडपॉइंटऑडियो ट्रांसक्राइब करें, ऑडियो का अंग्रेज़ी में अनुवाद करें, या भाषण संश्लेषित करें।
अनुरोध उदाहरण
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"file": "audio.wav",
"model": "your-model-id"
}प्रतिक्रियाएँ
{
"text": "Example transcript."
}अनुरोध उदाहरण
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"file": "audio.wav",
"model": "your-model-id"
}प्रतिक्रियाएँ
{
"text": "Example transcript."
}अनुरोध उदाहरण
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"model": "your-model-id",
"voice": "your-voice-id",
"input": "Welcome to AnyInt Gateway."
}प्रतिक्रियाएँ
<binary>छवियाँ
4 एंडपॉइंटGenerate and edit images with OpenAI-compatible requests.
अनुरोध उदाहरण
curl \
--request POST \
--url 'https://api.anyint.ai/v1/images/edits' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--form 'image=@path/to/image.png' \
--form 'model=your-model-id' \
--form 'prompt=Add a soft blue background.'प्रमाणीकरण
http · bearerAnyInt डेवलपर API कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"image": "image.png",
"model": "your-model-id",
"prompt": "Add a soft blue background."
}प्रतिक्रियाएँ
{
"created": 1700000000,
"data": [
{
"b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB"
}
]
}अनुरोध उदाहरण
curl \
--request POST \
--url 'https://api.anyint.ai/openai/v1/images/edits' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--form 'image=@path/to/image.png' \
--form 'model=your-model-id' \
--form 'prompt=Add a soft blue background.'प्रमाणीकरण
http · bearerAnyInt डेवलपर API कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"image": "image.png",
"model": "your-model-id",
"prompt": "Add a soft blue background."
}प्रतिक्रियाएँ
{
"created": 1700000000,
"data": [
{
"b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB"
}
]
}अनुरोध उदाहरण
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"model": "your-model-id",
"prompt": "A minimal paper sculpture of a cloud",
"n": 1
}प्रतिक्रियाएँ
{
"created": 1700000000,
"data": [
{
"b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB"
}
]
}अनुरोध उदाहरण
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।प्रतिक्रियाएँ
{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।प्रतिक्रियाएँ
{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।प्रतिक्रियाएँ
{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।प्रतिक्रियाएँ
{
"models": [
{
"name": "models/your-model-id",
"displayName": "Configured model",
"supportedGenerationMethods": [
"generateContent"
],
"inputTokenLimit": 8192,
"outputTokenLimit": 8192
}
]
}एसिंक्रोनस मीडिया
26 एंडपॉइंटइमेज, वीडियो और संगीत के एसिंक्रोनस जॉब बनाएं और उनका निरीक्षण करें।
अनुरोध उदाहरण
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| task_id | path | string | आवश्यक | — |
प्रतिक्रियाएँ
{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| task_id | path | string | आवश्यक | — |
प्रतिक्रियाएँ
<binary>अनुरोध उदाहरण
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| task_id | path | string | आवश्यक | — |
प्रतिक्रियाएँ
{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| task_id | path | string | आवश्यक | — |
प्रतिक्रियाएँ
<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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| task_id | path | string | आवश्यक | — |
प्रतिक्रियाएँ
{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| task_id | path | string | आवश्यक | — |
प्रतिक्रियाएँ
<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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| task_id | path | string | आवश्यक | — |
प्रतिक्रियाएँ
{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| task_id | path | string | आवश्यक | — |
प्रतिक्रियाएँ
<binary>अनुरोध उदाहरण
curl \
--request POST \
--url 'https://api.anyint.ai/suno/generate' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "your-model-name",
"prompt": "A calm landscape",
"duration_seconds": 5
}'प्रमाणीकरण
http · bearerAnyInt डेवलपर API कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"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/suno/query/task?taskId=<taskId>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'प्रमाणीकरण
http · bearerAnyInt डेवलपर API कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| taskId | query | string | आवश्यक | — |
प्रतिक्रियाएँ
{
"id": "task_example",
"taskId": "task_example",
"object": "audio",
"status": "queued",
"created_at": 0
}अनुरोध उदाहरण
curl \
--request GET \
--url 'https://api.anyint.ai/doubao/videos/<task_id>' \
--header 'Authorization: Bearer <ANYINT_API_KEY>' \
--header 'Accept: application/json'प्रमाणीकरण
http · bearerAnyInt डेवलपर API कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| task_id | path | string | आवश्यक | — |
प्रतिक्रियाएँ
{
"id": "task_example",
"taskId": "task_example",
"object": "video",
"status": "queued",
"created_at": 0
}अनुरोध उदाहरण
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।प्रतिक्रियाएँ
{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| task_id | path | string | आवश्यक | — |
प्रतिक्रियाएँ
{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| task_id | path | string | आवश्यक | — |
प्रतिक्रियाएँ
{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| task_id | path | string | आवश्यक | — |
प्रतिक्रियाएँ
{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| task_id | path | string | आवश्यक | — |
प्रतिक्रियाएँ
{
"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 | आवश्यक | — |
प्रतिक्रियाएँ
<binary>Anthropic संदेश
2 एंडपॉइंटAnthropic-नेटिव संदेशों, टोकन गणना और मॉडल खोज का उपयोग करें।
अनुरोध उदाहरण
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।अनुरोध निकाय
आवश्यक{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}प्रतिक्रियाएँ
{
"input_tokens": 12
}Gemini सामग्री
4 एंडपॉइंटGemini-नेटिव सामग्री निर्माण और स्ट्रीमिंग का उपयोग करें।
अनुरोध उदाहरण
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| model | path | string | आवश्यक | — |
अनुरोध निकाय
आवश्यक{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}प्रतिक्रियाएँ
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "Edge computing reduces latency."
}
]
}
}
]
}अनुरोध उदाहरण
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| model | path | string | आवश्यक | — |
| alt | query | string | वैकल्पिक | — |
अनुरोध निकाय
आवश्यक{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}प्रतिक्रियाएँ
data: {"candidates":[{"content":{"role":"model","parts":[{"text":"Edge computing reduces latency."}]}}]}
अनुरोध उदाहरण
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| model | path | string | आवश्यक | — |
अनुरोध निकाय
आवश्यक{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}प्रतिक्रियाएँ
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "Edge computing reduces latency."
}
]
}
}
]
}अनुरोध उदाहरण
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 कुंजी को ऑथराइज़ेशन हेडर में बियरर टोकन के रूप में पास करें।पैरामीटर
| नाम | स्थान | प्रकार | आवश्यक | विवरण |
|---|---|---|---|---|
| model | path | string | आवश्यक | — |
| alt | query | string | वैकल्पिक | — |
अनुरोध निकाय
आवश्यक{
"contents": [
{
"parts": [
{
"text": "Explain edge computing briefly."
}
]
}
]
}प्रतिक्रियाएँ
data: {"candidates":[{"content":{"role":"model","parts":[{"text":"Edge computing reduces latency."}]}}]}