Skip to documentation
MakeInfluencer.ai
v1

OpenAI · image model

GPT Image 2 API

Use the GPT Image 2 API for hosted AI image generation with model-aware inputs, asynchronous jobs, and MakeInfluencer credits.

Endpoint overview

POSThttps://www.makeinfluencer.ai/api/v1/models/gpt-image-2/generations

Model ID

gpt-image-2

Typical time

~30s

Sample quote

502 credits

The displayed price is input-specific

The sample quote is GPT Image 2 - 1K low. Preview your exact payload before generating; previews do not charge.

Create a generation

Send the model fields inside input. The request returns HTTP 202 with an owned generation ID.

cURL
curl --request POST \
  https://www.makeinfluencer.ai/api/v1/models/gpt-image-2/generations \
  --header "Authorization: Bearer $MAKEINFLUENCER_API_KEY" \
  --header "Idempotency-Key: gpt-image-2-001" \
  --header "Content-Type: application/json" \
  --data '{
  "input": {
    "prompt": "Editorial portrait of a fashion creator in a sunlit studio",
    "aspectRatio": "1:1",
    "resolution": "1k",
    "quality": "low"
  }
}'

Model parameters

FieldTypeDefaultAccepted values
promptrequiredtext
aspectRatioenum1:11:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
resolutionenum1k1k, 2k, 4k
qualityenummediumlow, medium, high
imageUrlsimageArrayUp to 10 items

The same contract is available fromGET /models/gpt-image-2 for server-side validation and dynamic tooling.

Preview credits

POST · no charge
curl --request POST \
  https://www.makeinfluencer.ai/api/v1/models/gpt-image-2/preview-credits \
  --header "Authorization: Bearer $MAKEINFLUENCER_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
  "input": {
    "prompt": "Editorial portrait of a fashion creator in a sunlit studio",
    "aspectRatio": "1:1",
    "resolution": "1k",
    "quality": "low"
  }
}'

A valid response returns the exact credit cost and pricing description. The dashboard, REST API, and MCP use one balance at the same model price.

Poll the result

GET · image
curl \
  https://www.makeinfluencer.ai/api/v1/generations/image/GENERATION_ID \
  --header "Authorization: Bearer $MAKEINFLUENCER_API_KEY"

Poll until terminal is true. On success, ready is true. Readurl for video orurls for image output. See the polling guide for statuses and backoff.

GPT Image 2 API FAQ

How much does the GPT Image 2 API cost?

The documented sample request costs 502 MakeInfluencer credits. Final cost depends on the exact model inputs, and the preview-credits endpoint returns an exact quote without charging.

Does the GPT Image 2 API use a separate balance?

No. REST, MCP, and the MakeInfluencer dashboard use the same account credit balance.

How do I receive GPT Image 2 results?

Creation returns HTTP 202 with a generation ID. Poll the image generation-status endpoint until terminal is true. On success, ready is true and the response contains the output URL.