OpenAI · Images · API

GPT Image API — ruble pricing and a 5-minute setup

GPT Image API (OpenAI) with ruble billing: ChatGPT image generation and editing through one Zerocoder key. Per-image pricing, OpenAI SDK, code samples, limits.

What GPT Image is good at

GPT Image is a family of OpenAI models for generating and editing pictures from a text prompt. One call creates an image from scratch, another call edits an existing one — swap a background, change color, add or remove an object, while keeping the rest of the picture untouched.

The family handles product shots, illustrations, UI mockups, social media visuals and quick edits on uploaded photos. You describe the result in plain text and get back a finished image, no manual masking or layers required.

What Zerocoder adds

One API key and one ruble wallet work for every model in the lineup — gpt-image-2, gpt-image-2.5 and gpt-image-2-vip — plus every other model on the platform. Top up the wallet with a Russian card or a company invoice, no foreign card or VPN needed. Docs, the key and the balance all live in your cabinet; prices for every model are listed in GET /v1/models.

How a request works

You send a prompt and a model id to POST /v1/images/generations, choosing a size or aspect ratio. For edits, you send the same prompt plus the source image (or up to four images) to POST /v1/images/edits. Both endpoints answer with a JSON object holding a temporary URL to the result — download it right away, since the link expires.

Models and prices

The live GET /v1/models price list in rubles and dollars. Endpoint: /v1/images/generations

Model prices in rubles and dollars; where we are cheaper, the vendor's official price for the same unit is struck through
ModelPriceUnit
GPT Image 2recommendedgpt-image-2 · OpenAIalso: openai-image:gpt-image-2, gpt-image
2.4 ₽$0.027per image
GPT Image 2.5gpt-image-2.5 · OpenAI
2.4 ₽$0.027per image
GPT Image 2 VIPgpt-image-2-vip · OpenAI
3.6 ₽$0.040per image
Dollars at the internal rate 1 $ = 90 ₽; the Zerocoder price includes ruble billing and no-VPN access.

Cost calculator

Pick a model and a volume — the calculator uses the same formulas as API billing.

per image2.4 ₽ $0.027
per month · 1024 ₽ $0.267

Prices from GET /v1/models, internal exchange rate. Failed generations are not charged.

  1. Get a keyin the API dashboard
  2. Top up the walletin rubles: card, SBP or invoice
  3. Make the callPOST /v1/images/generations, model gpt‑image
First request

Connect the GPT Image API: a key and one POST

An OpenAI-Images-style request: POST /v1/images/generations with model, prompt and aspect. One image per call (n = 1); the response is a link in data[0].url, not b64_json — download the file right away. Photo edits go to POST /v1/images/edits.

Base URL
https://zerocoder.com/api/v1

Key — in the x-api-key or Authorization: Bearer header

Model in the samples — gpt-image; any model from the table works

import requests URL = "https://zerocoder.com/api/v1/images/generations"H = {"x-api-key": "zc-sk-…"} r = requests.post(URL, headers=H, json={    "model": "gpt-image",    "prompt": "Studio photo of a ceramic mug, soft light",    "aspect": "1:1",  # or 16:9 / 9:16 / 4:3 / 3:4})r.raise_for_status()# n=1: one image per call, as a URL (no b64_json)print(r.json()["data"][0]["url"])
const endpoint =  "https://zerocoder.com/api/v1/images/generations";const r = await fetch(endpoint, {  method: "POST",  headers: {    "x-api-key": "zc-sk-…",    "content-type": "application/json",  },  body: JSON.stringify({    model: "gpt-image",    prompt: "Studio photo of a ceramic mug, soft light",    aspect: "1:1",  }),});const out = await r.json();if (!r.ok) throw new Error(out.error.message);console.log(out.data[0].url); // n=1, a URL (no b64_json)
curl https://zerocoder.com/api/v1/images/generations \  -H "x-api-key: zc-sk-…" \  -H "content-type: application/json" \  -d '{"model": "gpt-image", "aspect": "1:1",       "prompt": "Studio photo of a ceramic mug, soft light"}'# → {"created":…,"data":[{"url":"https://…"}]}# n=1: one image per call, a URL (no b64_json);# the URL is temporary — download the file right away
# JSON — image(s) by https URL or data URI, up to 4curl https://zerocoder.com/api/v1/images/edits \  -H "x-api-key: zc-sk-…" \  -H "content-type: application/json" \  -d '{"model": "gpt-image", "aspect": "16:9",       "prompt": "Make it a night scene",       "image": "https://example.com/photo.jpg"}' # multipart — files from disk (≤ 8 MB each)curl https://zerocoder.com/api/v1/images/edits \  -H "x-api-key: zc-sk-…" \  -F model=gpt-image -F aspect=16:9 \  -F prompt="Make it a night scene" \  -F "image[]=@photo1.jpg" -F "image[]=@photo2.jpg"

How to connect the GPT Image API: first request in 5 minutes

From a key to production — six steps based on the real /api/v1 contracts. Each step links to the relevant docs section.

  1. 1

    Get a key in your account

    Sign up, open the API section of your account, top up the balance in rubles and create a zc-sk-… key. One key unlocks GPT Image and every other model in the catalogue.

    Read more →
  2. 2

    Send the first request

    POST /v1/images/generations with model, prompt and aspect or size — the response has data[0].url with the finished GPT Image image.

    Read more →
  3. 3

    Save the result and try edits

    The image URL is temporary — download the file to your own storage right away. For edits use /v1/images/edits: up to four source images by https URL, data URI or multipart, up to 8 MB each.

    Read more →
  4. 4

    Handle limits and errors

    30 requests per minute per key: on 429 wait and retry with a growing pause; 402 — top up the balance; 400 — check model against GET /v1/models. Failed generations are not charged, so retrying is safe.

    Read more →
  5. 5

    Watch the budget

    GET /v1/balance returns the balance and 30-day spend; every call's price comes back in the response — write it to your logs and set an alert threshold in your own monitoring.

    Read more →
  6. 6

    Ship to production

    Keep the key in server secrets, never in the frontend. For high GPT Image volumes contact us — the limit is raised individually and companies can pay by invoice. Check the observed stability on the status page.

    Read more →

No code

Any tool that can make an HTTP request can call our API: one POST with the x-api-key header.
HTTP Requestn8n

HTTP Request node: POST to the /api/v1 endpoint, x-api-key header and a JSON body built from workflow fields. For video add a Wait node and a second HTTP Request on GET ?id= in a loop until completed.

HTTP → Make a requestMake

HTTP “Make a request” module: POST, Body type JSON, x-api-key header. The response is parsed automatically — the image url or the answer text flows into the next modules.

Webhooks by ZapierZapier

Webhooks by Zapier → Custom Request action: POST, Data — JSON with model and prompt, Headers — x-api-key. Response fields are available to the following Zap steps.

Apps ScriptGoogle Sheets

In Apps Script use UrlFetchApp.fetch with method post, contentType application/json and a payload from the cells: prompts in one column, results written to the next one.

any bot frameworkTelegram bot

A bot on aiogram, grammY or Telegraf calls the same HTTP API: user message → model request → reply in the chat. For video — poll the status and send the file from the finished URL.

OpenAI-compatible base URLPython / Node SDK

For text models the official OpenAI and Anthropic SDKs work with a swapped base URL and our key — your application code stays the same. Images and video are a plain HTTP call from any language.

For business

We'll help bring AI into your business

More than a key: we help wire GPT Image and other models into your workflows — from audit to production, with invoice payment.

  • Process auditWe find where AI pays off in your workflows: support, sales, content, documents — and name specific scenarios and models.
  • Integration into CRM, website, Telegram, n8nWired through our API or ready no-code scenarios; one key and a shared balance for every model.
  • Ruble payment by invoiceCompanies get an invoice for bank transfer, accounting documents and a top-up of the API balance.
  • Support and limitsHelp with prompts and architecture, request limits raised individually for your load.

Inputs, limits and refunds

  • Generation: prompt + aspect 1:1 / 16:9 / 9:16 / 4:3 / 3:4 or size 1024x1024 / 1792x1024 / 1024x1792
  • Editing: up to 4 images — https URLs, data URIs or multipart
  • Up to 8 MB per file, 48 MB per request (413 otherwise)
  • The result URL is temporary — save the file right away
  • Provider failure — nothing is charged
  • 30 requests per minute per key (all endpoints combined)

Error responses and refunds

# 401 {"type":"error","error":{"type":"authentication_error","message":"Invalid or revoked API key."}}
# 402 {"type":"error","error":{"type":"billing_error","message":"Not enough API balance: …"}}
# 429 {"type":"error","error":{"type":"rate_limit_error","message":"…"}}   ← 30 requests/min per key
# 400 {"type":"error","error":{"type":"invalid_request_error","message":"Unknown model \"…\". See GET /v1/models."}}
# 413 {"type":"error","error":{"type":"invalid_request_error","message":"…"}}   ← > 8 MB per file / > 48 MB body
# 502 {"type":"error","error":{"type":"api_error","message":"…"}}                ← provider failed → nothing charged

Observed stability of the API and image generation

Numbers come from the public /status summary: the share of successful requests over a period for the whole API and for the category as a whole (the summary has no per-model breakdown), no SLA promises. Failed generations are not charged, so retrying is safe.

Developer APIoperational

—now (2 h window)
78.5%last 30 days
78.5%last 90 days

Image generationoperational

—now (2 h window)
91.5%last 30 days
90.5%last 90 days

Refunds and charges

  • Provider failure — nothing is charged
  • Oversized file — 413 before any charge
  • The result URL is temporary — save the file right away

Tracking since Aug 6, 2026.

Use cases

1

An e-commerce team generates product photos on custom backgrounds without a photo studio

2

A marketing bot creates social media visuals from a campaign brief in Telegram

3

A design tool lets users edit uploaded photos — change color, remove objects, swap backgrounds

4

An indie app generates illustrations for blog posts and landing pages on demand

5

A SaaS onboarding flow produces custom avatar or cover images for new user profiles

6

An internal content pipeline batch-generates image variants for A/B testing ad creatives

Real results

Works by Zerocoder users made with this model: preview, resolution, duration and date. Nothing was generated specifically for this page.

A cinematic, dreamlike AR visual featuring a central 151 photorealistic person s10
Transform the uploaded image into a high-contrast monochrome particle-render aes6
Apply a high-contrast black-and-white halftone print effect to this image, dense
Ultra-realistic iPhone editorial photo of a stylish young man against a raw conc7
Ultra-realistic RAW 8K HDR Apple × Dior × Vogue 2026 beauty guide. Use the uploa
ModelDateLikesPrompt
GPT Image 223 August 202610A cinematic, dreamlike AR visual featuring a central 151 photorealistic person surrounded by floating 3D Spotify/Apple Music interface cards
GPT Image 223 August 20267Ultra-realistic iPhone editorial photo of a stylish young man against a raw concrete wall. Wearing an oversized beige cropped utility jacket
GPT Image 26 September 20266Transform the uploaded image into a high-contrast monochrome particle-render aesthetic. Subject reconstructed entirely from thousands of tin
GPT Image 226 August 20260Ultra-realistic RAW 8K HDR Apple × Dior × Vogue 2026 beauty guide. Use the uploaded face as the ONLY identity reference. Preserve identity 1
GPT Image 223 August 20260Apply a high-contrast black-and-white halftone print effect to this image, dense dot-pattern shading with a glowing blue background bleed. D

Prompting tips

  • Describe composition first: what's in the foreground, what's in the background, and from which angle
  • Name the style and materials explicitly — photo, flat illustration, 3D render, matte plastic, brushed metal
  • State the light: soft daylight, studio softbox, neon, backlight — it changes mood more than color alone
  • Pick aspect by the job: 1:1 for feeds and avatars, 16:9 for banners and covers, 9:16 for stories and reels
  • For edits, say exactly what to change and what to keep, add «without …» for anything that must disappear

Ready-made prompts for GPT Image

Copy the prompt and the parameters into the request body — the fields are named exactly as in the /api/v1 contract. Replace the angle-bracket placeholders with your material.

Poster with a headline

Minimalist concert poster with the headline “OPEN AIR” in bold sans-serif at the top, sunset gradient, silhouette of a crowd, print-ready layout
aspect: 3:4

Put the exact text in quotes and say where it goes.

Icon set

Set of nine flat line icons for a fintech app: wallet, card, transfer, chart, shield, bell, settings, support, gift; consistent stroke, on a three by three grid
aspect: 1:1

Packaging mockup

Packaging mockup of a kraft paper coffee bag with a simple green label, studio lighting, front view, blank area for a logo
aspect: 1:1

Recolor a product (edits)

Change the jacket color to deep burgundy, keep fabric texture, stitching and lighting
endpoint: /v1/images/editsimage: https://…/jacket.jpg

Blog hero illustration

Editorial illustration about remote work: a cozy desk by a window with a laptop and plants, warm palette, no text
aspect: 16:9

Who the GPT Image API is for

Industries where this kind of generation becomes part of the workflow rather than an experiment.

E-commerceCards on white and lifestyle scenes without a studio — GPT Image from your admin panel.
Marketplaces & retailPromo banners, product infographics, variants for every channel.
Media & socialCovers and post illustrations in one consistent brand style.
EdTechLesson illustrations, diagrams and task cards.
Agencies & designMoodboards, concepts and dozens of options in minutes before manual polish.
Real estate & autoBackground swaps and clean-ups with GPT Image edits — tidy listing photos.

FAQ

How much does the GPT Image API cost per image in rubles?

GPT Image is billed per finished picture: the version price is in the table above and in GET /v1/models, in rubles. Editing via /v1/images/edits costs the same as generation with the same version. No ChatGPT subscription is needed — you pay only for the GPT Image pictures you actually receive.

How do I connect the GPT Image API with the OpenAI SDK in Python?

Install the official openai package, set base_url to zerocoder.com/api/v1 and api_key to your zc-sk-… key, then call images.generate with a model from the GPT Image table and a prompt. For edits use /v1/images/edits — JSON with a link to the source or multipart with a file. Without the SDK plain requests works: shell, Python and Node.js samples are above.

What are the GPT Image API limits on size and uploads?

One image per request (n above one is not supported), format via aspect 1:1, 16:9, 9:16, 4:3, 3:4 or size 1024x1024, 1792x1024, 1024x1792. For editing GPT Image accepts up to 4 sources of 8 MB each and at most 48 MB per request. The shared key limit is 30 requests per minute across all endpoints; above that you get 429.

Which GPT Image version should I pick, and where do I get the model id?

Exact GPT Image version ids are printed by GET /v1/models — the same table above. The newer version follows long prompts more precisely and renders text in the image better; cheaper rows suit bulk creatives and drafts. Try a couple of prompts on the cheap version before moving the flow to the expensive one: the request format is identical for all GPT Image versions.

Does the GPT Image API charge for a failed generation?

No. When the provider fails, GPT Image charges nothing — the request returns an error and the balance stays the same. Only responses with a finished file in data[0].url are paid for. Note that the image link is temporary: download the file right away, otherwise a repeat request becomes a new paid generation.

Can I pay for the GPT Image API by invoice as a company?

Yes. In the API account a company requests an invoice, pays it from the corporate account, and the amount lands on the API balance — GPT Image keeps working with the same key. Individuals and sole traders pay with a Russian bank card; no foreign card or OpenAI account is needed. Accounting documents are available on request.

Does the GPT Image API have a free tier?

There is no free tier in the API: the wallet starts with a minimum first top-up and every GPT Image picture is charged at the list price. You can confirm for free that the model draws the banners and infographics you need in the Zerocoder studio and the catalogue tools — then move the winning prompts into the API.

Can the GPT Image API render legible text and infographics?

Yes, that is a GPT Image strength: quoted lettering with the language and placement specified comes out legible, and diagrams and slides are assembled from a detailed brief. List every element and its place on the layout — the model follows the prompt structure. Check the numbers in infographics by eye: the model places them on the layout but does not calculate.

AI API for your product

Ruble billing, no VPN, one key for every model