> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apiyi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# New FAQ: how to use the API more economically

> A new cost FAQ and an agent image-generation scenario page break down a real Codex task — 47 turns and about 2.2M input tokens — covering model tiers, cache rebuilds, prompt constraints, and GPT-Image Skills.

**2026/11/27 11:24 (UTC+8)** · Docs Update · OpenAI

📄 **New FAQ: "How Can I Use the API More Economically?" plus an agent image-generation scenario page**

In a real Codex image-compositing task, `gpt-6.2-astra` ran 47 turns in one hour with about 2.2M input tokens (90% cache hits) and a bill of about \$3.3 — yet made no image requests at all. The money went to agent exploration and repeated cache writes from zero, not to a model that was "making the task complicated on purpose".

The new FAQ breaks down that bill and lays out five levers: model tiers (`luna` / `sol` / `astra`), context control, prompt constraints, GPT-Image Skills, and image tools. The scenario page explains the tool-call and API-call chain behind a one-sentence image request, with copy-paste prompt templates and a cost comparison.

📖 [Read the "How can I use the API more economically?" FAQ](https://docs.apiyi.com/en/faq/api-cost-optimization.md)
📖 [Read "Natural-language image generation in AI agents"](https://docs.apiyi.com/en/scenarios/programming/agent-image-generation.md)

***

← [Back to live updates](https://docs.apiyi.com/en/live.md) · 📚 [Monthly archive](https://docs.apiyi.com/en/live/archive.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.