OpenAI

GPT Image 2 API

OpenAIgpt-image-2OpenAI Images API
雪の森にいる水彩画のキツネ、夕暮れ
1枚あたり
$0.04
USD / 枚、サイズ・品質を問わず
可用性(直近 24 時間)
正常

AI エージェントに任せる

このプロンプトを Claude Code、Cursor、Codex などのコーディングエージェントに貼り付けてください。ドキュメントの場所と API キーの使い方をエージェントに伝えます。

Integrate the model `gpt-image-2` from Lovely Router into this project through the OpenAI Images API.

- Docs (read first): https://lovelyrouter.com/docs/models/images.md
- Use the official OpenAI SDK with base URL https://lovelyrouter.com/v1: POST /v1/images/generations and /v1/images/edits. For long or batch work, queue jobs with POST https://lovelyrouter.com/v1/images/jobs and fetch them when done.
- One flat price per image; the price list is in the docs and GET https://lovelyrouter.com/v1/models.
- Model id: `gpt-image-2`. GET https://lovelyrouter.com/v1/models lists every model with its price.
- Auth: read my API key from the LOVELY_API_KEY environment variable and send it as `Authorization: Bearer $LOVELY_API_KEY`. Never print or commit the key. If it is not set, ask me to create one at https://lovelyrouter.com/app/keys.
- Billing is prepaid: every call is charged to my balance, so test with a small request before running anything large.
- Every docs page is plain Markdown; the full index is https://lovelyrouter.com/llms.txt.

My task: <describe what you want to build or get>

OpenAI Images API

curl https://lovelyrouter.com/v1/images/generations \
  -H "Authorization: Bearer $LOVELY_API_KEY" \
  -H "content-type: application/json" \
  -d '{"model": "gpt-image-2", "prompt": "A watercolor fox in a snowy forest", "size": "1024x1024"}'

よくある質問

GPT Image 2 の料金は?

生成画像 1 枚 $0.04(サイズ・品質を問わず)。プリペイド残高から支払い、サブスクリプションはありません。

これはAI 画像生成 APIですか?

はい。AI 画像生成 API、テキストから画像 APIをお探しなら、これです:Lovely Router の API で GPT Image 2 を、1 つのプリペイドキーで、このページに表示の料金で使えます。

GPT Image 2 はどの API を使いますか?

OpenAI Images API です。公式の OpenAI SDK のベース URL とキーを変えるだけで Lovely Router にリクエストできます。

そのほかの OpenAI モデル