Dža ko lil

OpenRouter

Integriruj

Modelosko 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.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Dži $5.138 pe jekh keripe čargeime palal realno labaripen, o aver si irime Phir les kate

Lel API klidin
OpenRouter LLM

Generalno tekstoskro LLM gateway kaj `model` field kidel savo čhibako modelo phenel e promptoske

OpenRouter · Teksto

Tiro prvo rezultato si kate

Ker tele jekh mangipen thaj phir les tire API klidinosa. E rezultatur si kopirime amare arakhipneste, vično vaj 7 dives bilačhes.

Ker jekh mangipen

O kontrolura kerde si katar e schemaske. O kodo thaj e cena menjinen sar tu len menjines.

•trubul

Prompto deime chat completion-ostar.

Sistemoskoro prompto savo del modeloske instrukcije vaj konteksto.

•trubul

Nav savo identifikuil o modelo vaš keripe.

Lučhe temperature · max_tokens · reasoning · enable_web_search · web_search_options
standardno 1

Odpovedakoro variability kontrolos; 0 garantiil identično odpoveda kana inputo na paruvvel. Bararipen durarel e odpoveda katar predvidime, tipikane odpoveda ko po but diverziteto thaj redkej odpoveda.

Phandel o kerdo odpovedakoro tokenonge gin ko vrednost na bareder sar context length minus prompto length. Keripe na šaj te nakhel o deime limitos.

Web rodipaskoro konfigurisipen, engineoskoro izborosa, rezultatonge limitosa thaj domenakere filtriripasa. Labardo numa kana enable_web_search si true.

POST /run/openrouter/router?wait=20 hesab → $5.138
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Phandel kava mangipen

Tiro kluč ačhel kadale browsereste: bičhalel pes numa ko Doitong API thaj šuvav pes (localStorage) numa te tiknes Remember. Le jekh API ključ

Palal OpenRouter

Bičhavel `prompt` ande čhibako modelo kidlo required `model` parametrasa. Opcionalne inputura si `system_prompt`, `temperature` katar 0 dži 2, `max_tokens`, `reasoning` flag thaj web search pala `enable_web_search`. Rezultato si generirime tekstosa, opcionalne reasoning-osa thaj tokenengro labaripen.

Parametra

NavTip standardnoMuklo Vakeripe
prompttrubul
Tipstring
Prompto deime chat completion-ostar.
system_promptopcionalno
Tipstring | null
Sistemoskoro prompto savo del modeloske instrukcije vaj konteksto.
modeltrubul
Tipstring
Nav savo identifikuil o modelo vaš keripe.
reasoningopcionalno
Tipboolean
standardnofalse
Te avel vaj na reasoning and-i finalno odpoveda.
temperatureopcionalno
Tipnumber
standardno1
0 – 2
Odpovedakoro variability kontrolos; 0 garantiil identično odpoveda kana inputo na paruvvel. Bararipen durarel e odpoveda katar predvidime, tipikane odpoveda ko po but diverziteto thaj redkej odpoveda.
max_tokensopcionalno
Tipinteger | null
≥ 1
Phandel o kerdo odpovedakoro tokenonge gin ko vrednost na bareder sar context length minus prompto length. Keripe na šaj te nakhel o deime limitos.
web_search_optionsopcionalno
Tipobject
Web rodipaskoro konfigurisipen, engineoskoro izborosa, rezultatonge limitosa thaj domenakere filtriripasa. Labardo numa kana enable_web_search si true.
web_search_options.engineopcionalno
Tipenum
standardnoauto
autonativeexa
Rodipaskoro engine: 'auto' thaj 'native' pale džan ko Exa kana native search na si dostupno. 'auto' labarel dostupno provider-native search; 'native' preferil built-in search katar OpenAI, Anthropic, Google, xAI vaj Perplexity. Exa search API numa vaš, izber 'exa'.
web_search_options.max_resultsopcionalno
Tipinteger | null
1 – 25
Rezultatonge limitos sako Exa search call-este, 1 tar 25, standardno 5. Native provider search na lel sama katar kada setting.
web_search_options.max_usesopcionalno
Tipinteger | null
≥ 1
Sako-mangipaskoro rodipaskoro limitos, bičhlo ko Anthropic vaš native search, aver native providerura ignorin len. Callura upral limitos len error rezultatos thaj na džan.
web_search_options.max_total_resultsopcionalno
Tipinteger | null
≥ 1
Phandutno rezultatonge limitos savore rodipen vaš jekh mangipen.
web_search_options.search_context_sizeopcionalno
Tipenum
lowmediumhigh
Sako-rezultatoskoro lelimo gin vaš Exa, zamenime katar max_characters kana dujora si deime thaj ignorime vaš native provider search. Izber low vaš 5K karakterura, medium vaš 15K vaj high vaš 30K; te na specifikil, Exa adaptiril o gin ko paše 2–4K sako rezultatoske.
web_search_options.max_charactersopcionalno
Tipinteger | null
1 – 100,000
Sako-rezultatoskoro content karakteronge limitos vaš Exa, upral search_context_size kana dujora si deime. Thov exact maximum 1 tar 100.000 karakterura; native provider search na lel sama katar kada setting.
web_search_options.allowed_domainsopcionalno
Tipstring[]
Domenakiri allowlist vaš Exa thaj buter native search providerura, savo limitil rezultaton ko navedime domena. Google native search na podporil la.
web_search_options.excluded_domainsopcionalno
Tipstring[]
Domenakiri exclusion lista vaš Exa thaj kompatibilne native providerura; Google thaj OpenAI native search na šaj te labaren kada lista. Rezultatura katar navedime domena aven avri.
web_search_options.user_locationopcionalno
Tipobject
Aproksimime useroskiri lokalizacija savi bias-il native search rezultaton geografikane; Exa na labarel kada informacija.
web_search_options.user_location.typeopcionalno
Tipstring
standardnoapproximate
Lokalizacijakiri klasifikacija; numa desteklimo vrednost si 'approximate'.
web_search_options.user_location.cityopcionalno
Tipstring | null
Nav e foroskoro, sar 'San Francisco'.
web_search_options.user_location.regionopcionalno
Tipstring | null
Nav e državakoro vaj regionoskoro, sar 'California'.
web_search_options.user_location.countryopcionalno
Tipstring | null
Them-identifikatoro duje lilença, sar 'US'.
web_search_options.user_location.timezoneopcionalno
Tipstring | null
Timezone-identifikatoro and-i IANA notacij, sar 'America/Los_Angeles'.
trubul

Rezultato

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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Tire fajlura, tiro alosaripenSako outputs[].url si kopija amare arakhipneste: vično (čargeime per GB-mase) vaj 7 dives bilačhes, tiro kontoskere regulaciatar vaj ?storage=.
Sa jekh forma sako modeloθartype, url, content_type, width, height thaj duration, varesave imajinake, video thaj audio-ke. output si o modelosko korkoro resultosko objekto.
Outputoske fieldura
output
stringRezultato kerdo le modelostar.
reasoning
string | nullReasoning kerdo vaš finalno odpovedakoro podporipen.
partial
booleanSikavel te si o rezultato na pherdo.
error
string | nullPoruka savo opisarel jek error, te si avilo.
usage
object {prompt_tokens, completion_tokens, total_tokens, cost, prompt_tokens_details} | nullTokenonge labaripaskere detajlura.

Bute modeli: LLM

AI agentenge: kadija rig sar Markdown si kate https://doitong.com/rom/developers/models/openrouter/router.md. Sa e modelura thaj e gidura: https://doitong.com/developers/llms.txt