ChatGPT API ? 2026: ?????????? ???????? ??? ???????????

???????:
  • OpenAI API ????? ?? ??????, ?? ?? ????? — ?????? Plus-?????????? ?? $20/??? ????? ?????? $1–$3/??? ?? API ?? ??? ????? ?????.
  • GPT-5 — ??????????? ?????????? ??????: $1.25/? ??????? ??????? ? $10/? ????????, ?????? ?? GPT-4o ?? ?????/??????.
  • Function calling (????? «tools») ??? ?????? ??????? ??????????: ?????? ?? ??, API-???????, ????????? ???? — ??? ???????? ??????? ??????? ????????? ??????.
  • Structured outputs ?????????? ???????? JSON ?? ????? ?????? — ?????? ?????? «???? ?????, ??????? JSON».
  • Prompt caching ???????? ???????? ??????? ??????? ?? 50% ??? ????-????? ????????, ?? ???????????? — ???????? ???????, RAG-????????, few-shot ????????.

???? ?? ??????? $300/??? ?? ?????? ChatGPT Plus-?????, ??? ???????? ??????? ??????????? ? ??????? ???????????? ???????? — ?? ????????? ?? ?? ?????. ??????-?????? — 200-???????? Python-?????? ??????????? ?? OpenAI API ? prompt caching, structured outputs ? ??????? rate limiter — ???????? ??????? ??? ??????? ?? $20–$40 ?? ?????? ? ??? ???, ?? ?? ?????????? Plus-???????????: ?????? ?????????? ????????, ??????????? ?????? ??????????? ? ?????? ???????? ??? ???, ??? ?????? ???????? ??? ??????.

?? ????????? ? ????? GPT-4

??? ????? ???????, ???? ??? ???????? ?????????? ?????? ? API ??? ? ???? GPT-4 Turbo. ??-?????, GPT-5 — ???????? ????????? ?????? ? ???? ??????? ???????: ?????? ?????? ????? ? $5/? ?? GPT-4o ?? $1.25/? ?? GPT-5, ? ?????? ??????????? ????? ? ??????????????? ???????? ? ???????????? ????????????. ??-?????, prompt caching ???????????? ?? ???????? ?????? ???????? ??????: ????-???? ??????? 1024+ ???????, ?? ???????????? ??? ????????, ????????? ??????????? ?? ??????? 50% ?? cache-????. RAG-???????? ?? 30K ??????? ????????? ????? ????? ???????? ???? ??? ?? 5-???????? ????? ??????? ??????? ??????. ??-?????, Realtime API ? Assistants v2 ??????? ?????? ? bespoke-?????????? ? ????????? ???????.

????????????: ?????, ???????, rate limits

???? 1 — ????????? API-???? ?????????

??????? ?? platform.openai.com/api-keys ? ???????? project-scoped ????, ? ?? user-scoped. ???????? ????? ????? ??????????, ???????? ? ????????????? ????? ?????? ?? ??????. ?????? ?? ???????? ???? — ??????? ? .env, ??????? .env ?? .gitignore.

???? 2 — ?????????? ???????? ????? ?????? ????? ?????? ???????

Settings ? Billing ? Limits: ????? $50 ????????? ??? ??????????????, soft notification ?? ????????. ??? ????? ???? ?????????? ???????????? ???? ???? ???????? ????????????? ??????? ?? ?????.

???? 3 — ?????????? ???? rate-limit tier

???? ??????? ????????? ?? Tier 1: 500 RPM ? 200K TPM ?? GPT-5. ?? ????????? ????? ??????????? ?? ?????????? ??????. ??? ????????? ??????????? Tier 1 ?????????. ????? 429 ??????? Retry-After ????????? — ??? ??? ?????'?????? ???????? ????.

?????? ? ?????????????

?????? ???? ($/1? ???????) ????? ($/1? ???????) ???????? ???
GPT-5$1.25$10?????? ??? ????????? ?????
GPT-5-mini$0.15$0.60????????????, routing, short completions
o4-mini$1.10$4.40Reasoning-????? ?????? ? ????????
o3$2.00$8.00???????????? reasoning, math, code

Function calling (Tools)

Function calling — ?? ??, ?? ??? ?????? ??????? ?????????? ??????? ????????? ????????? ??????. ?? ???????? ??????? (?????, ?????????, ?? ???? ??????) ? JSON Schema. ?????? ??????? ???? ? ?? ?????????. ??? ??? ??????? ??????? ? ???????? ?????????. ?????? ????????? ? ???????????. ??? ???????? use cases: ?????? ?? ???? ????? («?????? ?????????? ???????????»), ??????? ????????? API («??????? ??????? ??????»), ????????? ??? («??????? email»). ?????? ???????: ???? ??????? = ???? ???. ?? ?????????? «????? ? ?????????» ? ???? ??????? — ?? ????? ??????????.

Structured Outputs

Structured Outputs ?????????? ???????? JSON ????? ?? ????? ?????? — ??????? «??????? JSON» ?????, ?????? retry-?????? ??????? ????????? ???????. ????????? ????? ? ???????? response_format: {type: "json_schema", json_schema: {strict: true, schema: {...}}}. ?????? ?????'????? ????????? JSON, ?? ??????????? ?? ???? ?????? ??? ??????? ???????. ??? strict: true ???????? ???? ??????????? — ?????? hallucinated ?????????? ??????. ?????????? ? production: extraction ?????????, ????????????? ?? ????-???? workflow ?? ????????? ???? ??????? JSON.

Streaming

Streaming ???????? ?????? ?? ???? ????????? ??????? ?????????? ?????? ?????????. ??????? stream: true ?? ??????. ????????? Server-Sent Events: ????? event ??????? delta.content. ???? finish_reason: "stop" — ??? ??????. ???? ???????: perceived latency ????? ? 3–5 ?????. ??? ????-????? UI ? AI-????? streaming — ?? ?????, ?? ?????? UX. ?????? ????????? ??????: retry-?????? ?????????, ?? ????????-????????? ????????? ?? ? ???????????.

Prompt Caching

??????????? ????? ????-???? ??????? ??????? =1024 ???????. Cache hit = 50% ?????? ?? ?? ??????. TTL ????: 5–10 ?????? ???????? ?????, ?? 1 ?????? ??? ????? ???????????????? ?????????. ??????? ???????: ????????? ??????? ??????. ????????? ?????? ? few-shot ???????? ? RAG-???????? ? ?????????? user input. ???? ??????????? ??????? — ??? ?????? ?? ???????. ??? RAG-????????? ? 20K ??????? ????????? ?? ??????? ??? $0.025/????? ? $0.0125/????? ??? ?????????? ????.

???? ??????????????? API ??????? ChatGPT Team?

API ??? ?????????? ?????????????, product features, batch processing. Team ??? ????? ? ?????????????? ???????. ???? ??????? ???? ?? ??? UI — Team/Enterprise. ???? ??????? automation pipeline — API.

?? ???????? ???????????? ?????????

?????????? ???????? spend limit ?? ??????? ??????. ??????? ?????? ? ?????? ?????????. ?????? ?? ?????????? streaming ??? ????????. ???????? loop-?????? ? ???-??????????? ????? prod-???????.

?? ????????? API multimodal (??????????, ?????)?

???. ??????????: ????????? image_url ??? base64 ? messages. ?????: Realtime API ??? ?????????????? ?????????, Whisper API ??? ????????????, TTS API ??? ?????????. ????? modality ????????? ??????.

??????? ????????

  • GPT-5: $1.25/? ????, $10/? ????? — ??????????? ?????????? ?????? ? 2026.
  • Prompt caching: 50% ?????? ?? ??????????? ???????? — ?????? ????????? ??????? ??????.
  • Function calling = ??????? ?????????? (DB, API, ???) ??? ??????? ????????.
  • Structured outputs = ???????????? JSON ??? retry-??????.
  • ???????? spend limit ? project-scoped ???? — ?????, ?? ????????????.

???????? ???? API-???? ???????? ????? ??????????

??????? UniLink ?? ??????? — ???????????, ?????, booking. ???????????.

?????????? UniLink ??????????? ?