opencheap.si
鸣谢

GPT 图片 2

OpenAIImagesgpt-image-2

Try it

OpenAI's image model, strong at following long instructions, text in images and edits from several reference pictures. Set quality to pick OpenAI's own low, medium or high tiers.

Examples

Made with GPT Image 2 through OpenCheap's API, as they came back. Under each: what was asked, the settings and what the call cost.

一张卢布尔雅那的复古旅行海报:日落时分的龙桥,大胆的纯色,顶部用大字写着“LJUBLJANA”

“A retro travel poster of Ljubljana: the Dragon Bridge at sunset, bold flat colours, the word "LJUBLJANA" in large letters at the top”

3:41K

Cost $0.0085

一只可爱的黏土风格3D机器人吉祥物正挥手打招呼,采用柔和的粉彩色调,带有柔和的阴影,背景为素雅的浅色

“A cute clay-style 3D robot mascot waving hello, pastel colours, soft shadows, plain light background”

1:11K

Cost $0.0085

巨型空心树内一个温馨的阅读角落,暖意的灯笼,一只趴在书堆上睡觉的猫,水彩风格的儿童读物插画

“A cosy reading nook inside a giant hollow tree, warm lanterns, a sleeping cat on a pile of books, watercolour children's book illustration”

16:91K

Cost $0.0085

Try GPT Image 2

$0.00488

Runs on your account at this price, like an API call. Media needs a top-up first.

Your image shows here. An image takes a few seconds to a minute.

What it makes

Images from a prompt.

  • Resolution: 1K, 2K, 4K
  • Shape (width:height): auto, 1:1, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 16:9, 9:16, 2:1, 1:2, 3:1, 1:3, 21:9, 9:21
  • Quality: low, medium, high
  • Can follow images you send

Price

Per image

Each provider's price for each setting. A call goes to the cheapest one that can make it, and you pay that provider's price: the one in bold.

SettingAPIMartkie.ai
1K · low quality$0.00488—
1K · no quality set$0.0085$0.03
2K · low quality$0.00968—
2K · no quality set$0.015$0.05
4K · low quality$0.01592—
4K · no quality set$0.022$0.08
1K · medium quality$0.04232—
2K · medium quality$0.08576—
4K · medium quality$0.1424—
1K · high quality$0.16872—
2K · high quality$0.34264—
4K · high quality$0.56936—
1K · no quality set · PNG file$0.16872—
1K · no quality set · JPEG file$0.16872—
1K · no quality set · WEBP file$0.16872—
2K · no quality set · PNG file$0.34264—
2K · no quality set · JPEG file$0.34264—
2K · no quality set · WEBP file$0.34264—
4K · no quality set · PNG file$0.56936—
4K · no quality set · JPEG file$0.56936—
4K · no quality set · WEBP file$0.56936—

Each image you send with the prompt adds $0.01.

A call never costs more than the price shown, and costs less when the provider charges less. A call that fails is not charged. Media needs a top-up first: the free credit does not cover it.

Call GPT Image 2

Use your OpenCheap key and the model id gpt-image-2 at https://api.opencheap.si/v1. The OpenAI SDK works as it is. Links in the answer expire, so save what you make. Read the guide.

curl
curl https://api.opencheap.si/v1/images/generations \
  -H "Authorization: Bearer $OPENCHEAP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2",
    "prompt": "A red fox asleep in fresh snow, soft morning light",
    "resolution": "1k",
    "aspect_ratio": "1:1"
  }'
# The answer: {"data": [{"url": "https://…"}], …}. The link expires: save the image.