OpenAI logo

GPT Image 1 API

gpt-image-1

Generate images with GPT Image 1 through the APINEED asynchronous media API.

Submit a task, save its ID, and poll the task endpoint for its status and result URLs.

MODALITIES
Price$40 / 1M image output tokensCONTEXTN/A

Playground

Generate with GPT Image 1, review the output, and use the same request shape in your application.

Generation is unavailable until asynchronous model capabilities are verified.
Workflow
$40 / 1M image output tokensSign in required. Final cost uses completed usage.
Output Ready
Request preview
{
  "model": "gpt-image-1",
  "workflow": "text_to_image",
  "input": {
    "prompt": "A refined product photograph with natural lighting, realistic materials and a clean background."
  },
  "output": {
    "count": 1
  }
}

Provider

Current API Need routing and live API pricing.

API NeedPay as you go
Uptime
Total Context
N/A
Max Output
N/A
Input
$5/ 1M
Output
$40/ 1M
Cache Read
Route priced
Cache Write
Route priced

Pricing

Pricing uses the current live API Need configuration for this model.

Availability

Recent public performance data for this model.

API statusLive metrics
API Need gateway99.82% uptime

Quick Start

Call GPT Image 1 with the verified APINEED endpoint and model-specific request shape.

1

Create an API key

Store your APINEED key server-side as API_NEED_API_KEY.

export API_NEED_API_KEY=sk-apineed-v1-...
2

Send the request

Use gpt-image-1 with POST /v1/media/generations.

curl https://apineed.com/v1/media/generations \
  -H "Authorization: Bearer $API_NEED_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-image-1",
  "workflow": "text_to_image",
  "input": {
    "prompt": "A refined product photograph with natural lighting, realistic materials and a clean background."
  },
  "output": {
    "count": 1
  }
}'
3

Poll the task

Save id, then poll GET /v1/media/generations/{id} every few seconds until the task is succeeded or failed.

curl https://apineed.com/v1/media/generations/$TASK_ID -H "Authorization: Bearer $API_NEED_API_KEY"
const images = task.outputs.filter((item) => item.type === "image").map((item) => item.url);

GPT Image 1 API Endpoint

Create an asynchronous image task, then use its task ID to retrieve status and direct object-storage output URLs.

POST/v1/media/generations
Authorization
Bearer $API_NEED_API_KEY
Content-Type
application/json
HTTP-Referer
optional - your site URL, for rankings
Model
gpt-image-1
GET/v1/media/generations/{id}
Authorization
Bearer $API_NEED_API_KEY
Content-Type
application/json
HTTP-Referer
optional - your site URL, for rankings
Model
gpt-image-1

Parameters

These controls follow APINEED's current DTO and adapter behavior. Unsupported upstream-only fields are intentionally omitted.

NameTypeValuesDescription
modelstringRequiredUse gpt-image-1.
workflowstringtext_to_image, image_editUse an APINEED-supported workflow.
input.promptstringRequiredDescribe the requested image.
input.assetsarrayRequired for image_editImage URLs with role input_image; up to 1 references.
output.countinteger1–10Published by the backend capability contract.

GPT Image 1 API questions

Practical answers for choosing, integrating, pricing, and operating the GPT Image 1 API on APINEED.

How to deploy GPT Image 1

Connect GPT Image 1 to your application through the APINEED media API.

1

Add credits

Add APINEED credits before submitting a billable generation.

2

Create an API key

Create and securely store an APINEED API key.

3

Configure the endpoint

Send gpt-image-1 requests to /v1/media/generations.

4

Track the task

Poll the returned task ID and store the completed image URL from outputs[].

More live models