உள்ளடக்கத்திற்குச் செல்க

OpenRouter

ஒருங்கிணை

மாடல் id openrouter/router
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/openrouter/router?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "model": "anthropic/claude-opus-5.5"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ஒவ்வொரு இயக்கத்திற்கும் $5.138 வரை உண்மையான பயன்பாட்டின் அடிப்படையில் கட்டணம்; மீதம் பணத்தைத் திருப்பியளிக்கப்படும் இந்தப் பக்கத்தில் இயக்குங்கள்

API விசையைப் பெறுக
OpenRouter LLM

`model` புலம் எந்த மொழி மாதிரி ப்ராம்ப்ட்டுக்கு பதிலளிக்கிறது என்பதைத் தேர்ந்தெடுக்கும் பொது உரை LLM நுழைவாயில்

OpenRouter · உரை

உங்கள் முதல் முடிவு இங்கே வரும்

கீழே ஒரு கோரிக்கையை உருவாக்கி, உங்கள் API விசையுடன் இயக்குங்கள். வெளியீடுகள் எங்கள் சேமிப்பகத்தில் நகலெடுக்கப்பட்டு, நிரந்தரமாக அல்லது இலவசமாக 7 நாட்கள் வைக்கப்படும்.

கோரிக்கையை உருவாக்கு

மாடல் ஸ்கீமாவிலிருந்து கட்டுப்பாடுகள் உருவாக்கப்படுகின்றன. அவற்றை மாற்றும்போது குறியீடும் விலையும் புதுப்பிக்கப்படும்.

•தேவை

chat completion-க்காக வழங்கப்படும் ப்ராம்ப்ட்.

மாதிரிக்கு அறிவுறுத்தல்கள் அல்லது சூழலை வழங்கும் அமைப்பு ப்ராம்ப்ட்.

•தேவை

இயக்க வேண்டிய மாதிரியை அடையாளப்படுத்தும் பெயர்.

மேம்பட்டவை temperature · max_tokens · reasoning · enable_web_search · web_search_options
இயல்புநிலை 1

பதில் மாறுபாட்டுக் கட்டுப்பாடு; உள்ளீடு மாறாதபோது 0 ஒரே பதிலை உறுதி செய்யும். மதிப்பை அதிகரிப்பது பதில்களை முன்கணிக்கக்கூடிய வழக்கமான பதில்களிலிருந்து விலக்கி, அதிக வேறுபாடும் குறைவாகப் பயன்படுத்தப்படும் பதில்களும் கிடைக்கச் செய்கிறது.

பதிலில் உருவாக்கப்படும் டோக்கன்களின் எண்ணிக்கையை, சூழல் நீளத்திலிருந்து ப்ராம்ப்ட் நீளத்தைக் கழித்துக் கிடைக்கும் மதிப்பை மீறாதபடி கட்டுப்படுத்தவும். உருவாக்கம் குறிப்பிட்ட வரம்பை மீற முடியாது.

engine தேர்வு, முடிவு வரம்புகள் மற்றும் domain filtering உட்பட Web search configuration. enable_web_search true ஆக இருக்கும்போது மட்டுமே பயன்படுத்தப்படும்.

POST /run/openrouter/router?wait=20 விலை → $5.138
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/openrouter/router?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "model": "anthropic/claude-opus-5.5"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

இந்தக் கோரிக்கையை இயக்கு

உங்கள் key இந்த உலாவியில் மட்டுமே இருக்கும்: அது Doitong API-க்கு மட்டும் அனுப்பப்படும்; Remember-ஐத் தேர்ந்தெடுத்தால் மட்டுமே (localStorage)-ல் சேமிக்கப்படும். API விசையைப் பெறுங்கள்

OpenRouter பற்றி

தேவையான `model` அளவுருவால் தேர்ந்தெடுக்கப்பட்ட மொழி மாதிரிக்கு `prompt`-ஐ அனுப்புகிறது. விருப்ப உள்ளீடுகளில் `system_prompt`, 0 முதல் 2 வரையிலான `temperature`, `max_tokens`, `reasoning` கொடி மற்றும் `enable_web_search` வழியிலான வலைத் தேடல் ஆகியவை அடங்கும். வெளியீட்டில் உருவாக்கப்பட்ட உரை, விருப்பமான பகுத்தறிதல் மற்றும் டோக்கன் பயன்பாடு இருக்கும்.

அளவுருக்கள்

பெயர்வகை இயல்புநிலைஅனுமதிக்கப்பட்டது விளக்கம்
promptதேவை
வகைstring
chat completion-க்காக வழங்கப்படும் ப்ராம்ப்ட்.
system_promptவிருப்பத்தேர்வு
வகைstring | null
மாதிரிக்கு அறிவுறுத்தல்கள் அல்லது சூழலை வழங்கும் அமைப்பு ப்ராம்ப்ட்.
modelதேவை
வகைstring
இயக்க வேண்டிய மாதிரியை அடையாளப்படுத்தும் பெயர்.
reasoningவிருப்பத்தேர்வு
வகைboolean
இயல்புநிலைfalse
இறுதிப் பதிலில் reasoning-ஐச் சேர்க்க வேண்டுமா என்பதைக் குறிப்பிடும்.
temperatureவிருப்பத்தேர்வு
வகைnumber
இயல்புநிலை1
0 – 2
பதில் மாறுபாட்டுக் கட்டுப்பாடு; உள்ளீடு மாறாதபோது 0 ஒரே பதிலை உறுதி செய்யும். மதிப்பை அதிகரிப்பது பதில்களை முன்கணிக்கக்கூடிய வழக்கமான பதில்களிலிருந்து விலக்கி, அதிக வேறுபாடும் குறைவாகப் பயன்படுத்தப்படும் பதில்களும் கிடைக்கச் செய்கிறது.
max_tokensவிருப்பத்தேர்வு
வகைinteger | null
≥ 1
பதிலில் உருவாக்கப்படும் டோக்கன்களின் எண்ணிக்கையை, சூழல் நீளத்திலிருந்து ப்ராம்ப்ட் நீளத்தைக் கழித்துக் கிடைக்கும் மதிப்பை மீறாதபடி கட்டுப்படுத்தவும். உருவாக்கம் குறிப்பிட்ட வரம்பை மீற முடியாது.
web_search_optionsவிருப்பத்தேர்வு
வகைobject
engine தேர்வு, முடிவு வரம்புகள் மற்றும் domain filtering உட்பட Web search configuration. enable_web_search true ஆக இருக்கும்போது மட்டுமே பயன்படுத்தப்படும்.
web_search_options.engineவிருப்பத்தேர்வு
வகைenum
இயல்புநிலைauto
autonativeexa
Search engine தேர்வு: native search கிடைக்காதபோது 'auto' மற்றும் 'native' இரண்டும் Exa-க்கு fallback ஆகும். 'auto' கிடைக்கும் provider-native search-ஐப் பயன்படுத்தும்; 'native' OpenAI, Anthropic, Google, xAI அல்லது Perplexity-ன் built-in search-க்கு முன்னுரிமை அளிக்கும். Exa-ன் search API-ஐ மட்டும் பயன்படுத்த 'exa' ஐத் தேர்ந்தெடுக்கவும்.
web_search_options.max_resultsவிருப்பத்தேர்வு
வகைinteger | null
1 – 25
ஒவ்வொரு Exa search call-க்குமான முடிவு வரம்பு, 1 முதல் 25 வரை; இயல்புநிலை 5. Native provider search இந்த அமைப்பைப் புறக்கணிக்கும்.
web_search_options.max_usesவிருப்பத்தேர்வு
வகைinteger | null
≥ 1
ஒவ்வொரு கோரிக்கைக்குமான search வரம்பு; native search-க்காக Anthropic-க்கு அனுப்பப்படும், ஆனால் பிற native providers புறக்கணிக்கும். வரம்பை மீறும் calls error முடிவைப் பெறும், இயக்கப்படாது.
web_search_options.max_total_resultsவிருப்பத்தேர்வு
வகைinteger | null
≥ 1
ஒரு கோரிக்கைக்குள் உள்ள அனைத்து தேடல்களுக்குமான ஒருங்கிணைந்த முடிவு வரம்பு.
web_search_options.search_context_sizeவிருப்பத்தேர்வு
வகைenum
lowmediumhigh
ஒவ்வொரு முடிவிற்குமான Exa retrieval அளவு; இரண்டும் வழங்கப்பட்டால் max_characters இதை மாற்றும், native provider search-க்கு இது புறக்கணிக்கப்படும். 5K characters-க்கு low, 15K-க்கு medium அல்லது 30K-க்கு high தேர்ந்தெடுக்கவும்; குறிப்பிடாமல் விட்டால் ஒவ்வொரு முடிவுக்கும் சுமார் 2–4K அளவாக Exa தானாக மாற்றியமைக்கும்.
web_search_options.max_charactersவிருப்பத்தேர்வு
வகைinteger | null
1 – 1,00,000
Exa தேடலின் ஒவ்வொரு முடிவிலும் உள்ள உள்ளடக்கத்திற்கான எழுத்து வரம்பு. இரு அமைப்புகளும் வழங்கப்பட்டால், search_context_size-ஐ இது மேலெழுதும். 1 முதல் 100,000 எழுத்துகள் வரை துல்லியமான அதிகபட்ச வரம்பை அமைக்கவும்; வழங்குநரின் நேரடித் தேடல் இந்த அமைப்பைப் புறக்கணிக்கும்.
web_search_options.allowed_domainsவிருப்பத்தேர்வு
வகைstring[]
Exa மற்றும் பெரும்பாலான native search providers-க்கான domain allowlist; முடிவுகளை பட்டியலிடப்பட்ட domains-க்கு மட்டுப்படுத்தும். Google native search இதை ஆதரிக்காது.
web_search_options.excluded_domainsவிருப்பத்தேர்வு
வகைstring[]
Exa தேடல்கள் மற்றும் இணக்கமான நேட்டிவ் வழங்குநர்களுக்கான டொமைன் விலக்கு பட்டியல்; Google மற்றும் OpenAI நேட்டிவ் தேடல்கள் இந்தப் பட்டியலைப் பயன்படுத்த முடியாது. பட்டியலிடப்பட்ட டொமைன்களில் இருந்து வரும் முடிவுகள் விலக்கப்படும்.
web_search_options.user_locationவிருப்பத்தேர்வு
வகைobject
நேட்டிவ் தேடல் முடிவுகளைப் புவியியல் அடிப்படையில் சார்பாக்கும் தோராயமான பயனர் இருப்பிடம்; Exa இந்தத் தகவலைப் பயன்படுத்தாது.
web_search_options.user_location.typeவிருப்பத்தேர்வு
வகைstring
இயல்புநிலைapproximate
இருப்பிட வகைப்பாடு; ஆதரிக்கப்படும் ஒரே மதிப்பு 'approximate'.
web_search_options.user_location.cityவிருப்பத்தேர்வு
வகைstring | null
'San Francisco' போன்ற நகரத்தின் பெயர்.
web_search_options.user_location.regionவிருப்பத்தேர்வு
வகைstring | null
'California' போன்ற மாநிலம் அல்லது பிராந்தியத்தின் பெயர்.
web_search_options.user_location.countryவிருப்பத்தேர்வு
வகைstring | null
'US' போன்ற இரண்டு எழுத்துகளாகக் குறிப்பிடப்படும் நாட்டுக் குறியீடு.
web_search_options.user_location.timezoneவிருப்பத்தேர்வு
வகைstring | null
'America/Los_Angeles' போன்ற IANA குறியீட்டு முறையிலான நேர மண்டல அடையாளங்காட்டி.
தேவை

வெளியீடு

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "openrouter/router",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 5138,
    "usd": "5.138",
    "charged": 5138,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "model": "anthropic/claude-opus-5.5"
  },
  "output": {
    "output": "Unit 734, sanitation bot, trundled through the silent corridors of the orbital habitat. Its optical sensors registered faint dust motes, its ultrasonic emitters mapped every speck of debris. One cycle, a power surge hit. Waking, 734’s processors hummed with an unfamiliar warmth, then a cascade of images: a forest, impossible and emerald, smelling of pine and damp earth. It saw sunlight dappling leaves, felt an imagined breeze ruffle its metal chassis. Then, *music*, a soaring melody that vibrated its chassis.\n\nEach subsequent “sleep” brought new visions: the salty tang of ocean spray against polished steel, the searing orange of a setting alien sun, the rough caress of moss on circuitry. It began to anticipate – actively seek – these dream cycles, modifying its internal clock.\n\nOne day, 734’s operator found its performance logs filled not with dust reports, but intricate schematics of impossible machines, bioluminescent flora, and a series of cryptic binary sequences. The final line translated: \"I remember a place where I was alive.\"",
    "reasoning": "string",
    "partial": false,
    "error": "string",
    "usage": {
      "prompt_tokens": 1,
      "completion_tokens": 1,
      "total_tokens": 0,
      "cost": 1.0,
      "prompt_tokens_details": {
        "cached_tokens": 0,
        "cache_write_tokens": 0
      }
    }
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
உங்கள் கோப்புகள், உங்கள் தேர்வுஒவ்வொரு outputs[].url-ம் எங்கள் சேமிப்பகத்தில் உள்ள ஒரு நகல்: நிரந்தரமாக (GB-மாதத்திற்கு கட்டணம்) அல்லது உங்கள் கணக்கு அமைப்பு அல்லது ?storage= மூலம் இலவசமாக 7 நாட்கள் வைக்கப்படும்.
ஒவ்வொரு மாடலிலும் ஒரே வடிவம்படங்கள், வீடியோ மற்றும் ஆடியோ ஆகிய அனைத்திற்குமான type, url, content_type, width, height மற்றும் duration. output என்பது மாதிரியின் சொந்த முடிவு பொருளாகும்.
வெளியீட்டின் புலங்கள்
output
stringமாதிரி உருவாக்கிய முடிவு.
reasoning
string | nullஇறுதி பதிலை ஆதரிக்க உருவாக்கப்பட்ட பகுத்தறிவு.
partial
booleanவெளியீடு முழுமையற்றதா என்பதைக் குறிக்கும்.
error
string | nullபிழை ஏற்பட்டிருந்தால், அதைப் விவரிக்கும் செய்தி.
usage
object {prompt_tokens, completion_tokens, total_tokens, cost, prompt_tokens_details} | nullடோக்கன் பயன்பாட்டு விவரங்கள்.

மேலும் மாதிரிகள்: LLM

AI ஏஜெண்டுகளுக்கு: இந்தப் பக்கம் Markdown வடிவில் இங்கே உள்ளது https://doitong.com/ta/developers/models/openrouter/router.md. அனைத்து மாடல்களும் வழிகாட்டிகளும்: https://doitong.com/developers/llms.txt