Peke ki ngā ihirangi

OpenRouter [Vision]

Whakauru

id tauira openrouter/router/vision
# 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/vision?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": "openai/gpt-6-sol"
  }'

# 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"

Tae atu ki te $ 14.34 mō ia whakahaerenga ka utua mō te whakamahinga tūturu, ka whakahokia te toenga Whakahaerehia ki tēnei whārangi

Tikina he kī API
OpenRouter LLM

Ka arahi i tētahi tohutohu me ngā atahanga, PDF rānei ki tētahi LLM multimodal ka taea te kōwhiri, mō te tapanga, OCR, te Q&A tirohanga rānei

OpenRouter · Kuputuhi

Kei konei tō hua tuatahi

Hangaia he tono ki raro nei, ka whakahaere mā tō kī API. Ka tāruatia ngā putanga ki tō mātou rokiroki, ka puritia mō ake tonu atu, mō rānei 7 rā mō te kore utu.

Hangaia he tono

Ka hangaia ngā mana whakahaere mai i te aronuinga o te tauira. Ka whakahoungia te waehere me te utu ina whakarerekē koe.

•e hiahiatia ana

Tohutohu i whakamahia ki te atahanga.

•e hiahiatia ana

Te ingoa e tautuhi ana i te tauira hei whakahaere.

Arā atu system_prompt · images · temperature · max_tokens · reasoning · enable_web_search · pdf_urls · web_search_options

Te tohutohu pūnaha e tuku ana i ngā tohutohu, horopaki rānei ki te tauira.

image_urls
Whakataka he kōnae,

Ngā URL e tautuhi ana i ngā atahanga hei tukatuka.

taunoa 1

Te whakahaere rerekētanga whakautu; mā te 0 ka taurite tonu te whakautu ina kāore te tāuru i whakarerekē. Mā te whakanui ka neke ngā whakautu mai i ngā whakautu matapae, angamaheni ki ngā whakautu kanorau ake, onge ake hoki.

Whakawhāitihia te tatau tohu whakaputa o te whakautu ki tētahi uara kaua e nui ake i te roa horopaki haunga te roa tohutohu. Kāore e taea te whakaputa ki tua atu i te tepe kua tautuhia.

Homai ngā wāhi tuhinga hei rārangi PDF anake: ngā URL http(s) e tohu ana ki ngā kōnae .pdf, ngā URI raraunga rānei kei te āhua data:application/pdf;base64,... . Mā te parser tuhinga a OpenRouter e whakahaere ina kāore e taea e te tauira te tukatuka PDF māori.

Te whirihoranga rapu tukutuku, tae atu ki te kōwhiringa pūkaha, ngā tepe hua me te tātari rohe. Ka whakamahia ina true anake te enable_web_search.

POST /run/openrouter/router/vision?wait=20 utu → $ 14.34
# 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/vision?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": "openai/gpt-6-sol"
  }'

# 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"

Whakahaerehia tēnei tono

Ka noho tō kī ki tēnei pūtirotiro: ka tukuna ki te Doitong API anake, ā, ka tiakina ki te localStorage anake ina tohua e koe te Mahara. Tikina he kī API

Mō OpenRouter [Vision]

Ka tango `prompt` me te ingoa o tētahi tauira reo whai tirohanga i `model`, kātahi ka whakahoki whakautu kuputuhi. Tāpiritia ngā pikitia mā `image_urls` me ngā tuhinga mā `pdf_urls`, ā, ko ngā kōnae PDF anake ka whakaaetia. Ka tautoko hoki i `system_prompt`, `temperature` mai i te 0 ki te 2, `max_tokens`, te putanga whakaaroaro kōwhiringa me te rapu tukutuku.

Ngā tawhā

Tukuna te ingoa tōmua, te ingoa taketake rānei, kaua e rua. Ngā ingoa tōmua

IngoaMomo TaunoaE whakaaetia ana Whakamārama
image_urlskōwhiringa images
Momourl[] · image
Ngā URL e tautuhi ana i ngā atahanga hei tukatuka.
pdf_urlskōwhiringa
Momostring[]
Homai ngā wāhi tuhinga hei rārangi PDF anake: ngā URL http(s) e tohu ana ki ngā kōnae .pdf, ngā URI raraunga rānei kei te āhua data:application/pdf;base64,... . Mā te parser tuhinga a OpenRouter e whakahaere ina kāore e taea e te tauira te tukatuka PDF māori.
prompte hiahiatia ana
Momostring
Tohutohu i whakamahia ki te atahanga.
system_promptkōwhiringa
Momostring | null
Te tohutohu pūnaha e tuku ana i ngā tohutohu, horopaki rānei ki te tauira.
modele hiahiatia ana
Momostring
Te ingoa e tautuhi ana i te tauira hei whakahaere.
reasoningkōwhiringa
Momoboolean
Taunoafalse
Mēnā ka whakaurua te whakaaro ki te whakautu whakamutunga.
temperaturekōwhiringa
Momonumber
Taunoa1
0 – 2
Te whakahaere rerekētanga whakautu; mā te 0 ka taurite tonu te whakautu ina kāore te tāuru i whakarerekē. Mā te whakanui ka neke ngā whakautu mai i ngā whakautu matapae, angamaheni ki ngā whakautu kanorau ake, onge ake hoki.
max_tokenskōwhiringa
Momointeger | null
≥ 1
Whakawhāitihia te tatau tohu whakaputa o te whakautu ki tētahi uara kaua e nui ake i te roa horopaki haunga te roa tohutohu. Kāore e taea te whakaputa ki tua atu i te tepe kua tautuhia.
web_search_optionskōwhiringa
Momoobject
Te whirihoranga rapu tukutuku, tae atu ki te kōwhiringa pūkaha, ngā tepe hua me te tātari rohe. Ka whakamahia ina true anake te enable_web_search.
web_search_options.enginekōwhiringa
Momoenum
Taunoaauto
autonativeexa
Te kōwhiringa pūkaha rapu: ka hoki a 'auto' me 'native' ki Exa ina kāore e wātea ana te rapu taketake. Ka whakamahi a 'auto' i te rapu taketake a te kaiwhakarato e wātea ana; ko 'native' ka manako ki te rapu hanga-i-roto a OpenAI, Anthropic, Google, xAI, Perplexity rānei. Hei whakamahi motuhake i te search API a Exa, kōwhiria 'exa'.
web_search_options.max_resultskōwhiringa
Momointeger | null
1 – 25
Te tepe hua mō ia karanga rapu Exa, mai i te 1 ki te 25, ko te taunoa 5. Ka wareware te rapu taketake a te kaiwhakarato ki tēnei tautuhinga.
web_search_options.max_useskōwhiringa
Momointeger | null
≥ 1
Te tepe rapu mō ia tono, ka tukuna ki Anthropic mō te rapu taketake, engari ka warewarehia e ērā atu kaiwhakarato taketake. Ko ngā karanga ki tua atu i te tepe ka whiwhi hua hapa, kāore hoki e whakahaerehia.
web_search_options.max_total_resultskōwhiringa
Momointeger | null
≥ 1
Te tepe hua whakakotahi mō ngā rapunga katoa i roto i te tono kotahi.
web_search_options.search_context_sizekōwhiringa
Momoenum
lowmediumhigh
Te nui tiki mō ia hua mō Exa, ka whakakapihia e max_characters ina tukuna tahi, ā, ka warewarehia mō te rapu taketake a te kaiwhakarato. Kōwhiria low mō ngā pūāhua 5K, medium mō te 15K, high mō te 30K; ki te waiho kāore he uara, mā Exa e whakarite kia tata ki te 2–4K mō ia hua.
web_search_options.max_characterskōwhiringa
Momointeger | null
1 – 100,000
Te tepe pūāhua ihirangi mō ia hua mō Exa, ka whakakapi i te search_context_size ina tukuna tahi. Tautuhia he mōrahi tika mai i te 1 ki te 100,000 pūāhua; ka wareware te rapu taketake a te kaiwhakarato ki tēnei tautuhinga.
web_search_options.allowed_domainskōwhiringa
Momostring[]
Te rārangi rohe whakaaetia mō Exa me te nuinga o ngā kaiwhakarato rapu taketake, hei whakawhāiti i ngā hua ki ngā rohe kua whakarārangitia. Kāore te rapu taketake a Google e tautoko.
web_search_options.excluded_domainskōwhiringa
Momostring[]
Te rārangi aukati rohe mō ngā rapunga Exa me ngā kaiwhakarato taketake hototahi; kāore e taea e ngā rapunga taketake a Google me OpenAI te whakamahi. Ka aukatihia ngā hua nō ngā rohe kua whakarārangitia.
web_search_options.user_locationkōwhiringa
Momoobject
Te wāhi tata o te kaiwhakamahi e whakaawe ana ā-rohe i ngā hua rapu taketake; kāore a Exa e whakamahi i tēnei mōhiohio.
web_search_options.user_location.typekōwhiringa
Momostring
Taunoaapproximate
Te whakarōpūtanga wāhi; ko te uara tautoko anake ko 'approximate'.
web_search_options.user_location.citykōwhiringa
Momostring | null
Te ingoa o te tāone, pēnei i 'San Francisco'.
web_search_options.user_location.regionkōwhiringa
Momostring | null
Te ingoa o te kāwanatanga, rohe rānei, pēnei i 'California'.
web_search_options.user_location.countrykōwhiringa
Momostring | null
Te tautohu whenua e rua ngā pūriki, pēnei i 'US'.
web_search_options.user_location.timezonekōwhiringa
Momostring | null
Te tautohu rohe wā i te tuhi IANA, pēnei i 'America/Los_Angeles'.
e hiahiatia ana Ingoa tōmua, e whakaaetia ana hoki

Mō ngā tawhā kōnae, whakamahia he URL tūmatanui https://, he URI data: tae atu ki te 10 MB, he file_url rānei o tētahi tukuake. Ngā kōnae

Putanga

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "openrouter/router/vision",
  "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": 14340,
    "usd": "14.34",
    "charged": 14340,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "model": "openai/gpt-6-sol"
  },
  "output": {
    "output": "A close-up of a tiger's face focusing on its bright orange iris and the area around its eye, with white fur eyebrows and a contrasting black and rich orange striped fur pattern. The word \"FLUX\" is overlaid in bold, white, brush-stroke styled text across the tiger's face.",
    "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"
  }
}
Ō kōnae, māu e whiriwhiriKo ia url o outputs[] he tārua kei tō mātou rokiroki: ka puritia mō ake tonu atu (ka utua ia GB-marama) mō rānei 7 rā mō te kore utu, e ai ki ngā tautuhinga o tō pūkete, ki te ?storage= rānei.
He ōrite te hanga ki ia tauiratype, url, content_type, width, height me duration, mō ngā pikitia, ataata me te oro. Ko output te ahanoa hua ake o te tauira.
Ngā āpure o te putanga
output
stringHua nā te tauira i whakaputa.
usage
object {prompt_tokens, completion_tokens, total_tokens, cost, prompt_tokens_details} | nullNgā taipitopito o te whakamahinga tohu.

Ētahi atu tauira: LLM

Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/openrouter/router/vision.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt