GPT-Image-2 API: $0.02-இல் இருந்து Images உருவாக்கவும் & Edit செய்யவும் — கிடைக்கும் மிகக் குறைந்த விலை Access

OpenAI pricing-இல் 50% தள்ளுபடியில் உள்ள GPT-Image-2 API. $0.003-இல் images உருவாக்கவும், multi-reference & mask inpainting மூலம் edit செய்யவும், PNG/JPEG/WebP output-ஐ 4K வரை பெறவும். OpenAI-compatible endpoint நேரடியாக பயன்படுத்தலாம்.

S
Smart AIPI Team
7 நிமிட வாசிப்பு ·
GPT-Image-2 API: $0.02-இல் இருந்து Images உருவாக்கவும் & Edit செய்யவும் — கிடைக்கும் மிகக் குறைந்த விலை Access

TL;DR: GPT-Image-2 இன்று Smart AIPI-இல் live ஆக உள்ளது — OpenAI அதை வெளியிட்ட அதே நாளில். gpt-image-2 model-ஐ /v1/images/generations அல்லது /v1/images/edits இல் பயன்படுத்துங்கள். இது OpenAI direct-ஐ விட 50% குறைவு, multi-reference edits, mask inpainting, JPEG/WebP output, மற்றும் 4K resolutions-ஐ support செய்கிறது. எந்த config மாற்றமும் தேவையில்லை — எந்த legacy model ID-யும் (dall-e, dall-e-3, gpt-image-latest) நேரடியாக gpt-image-2-க்கு route ஆகும்.

OpenAI இப்போது GPT-Image-2-ஐ வெளியிட்டுள்ளது, இது அவர்களின் புதிய flagship image generation மற்றும் editing model. அதே நாளில் அதை Smart AIPI-க்கு சேர்த்தோம். எந்த /v1/images/generations அல்லது /v1/images/edits call-இலும் gpt-image-2 model ID-யைப் பயன்படுத்துங்கள் — config மாற்றம் இல்லை, redeployment இல்லை, அதே API key.

கீழே: gpt-image-1.5-ஐ ஒப்பிடும்போது உண்மையில் என்ன மாறியது, production-க்கு multi-reference edits + mask inpainting ஏன் முக்கியம், exact pricing, மற்றும் நான்கு மொழிகளில் working code.

GPT-Image-2-ஐ வேறுபடுத்துவது என்ன

GPT-Image-2 என்பது serious creative workflows-க்கு deploy செய்ய practical-ஆக இருக்கும் முதல் OpenAI image model — வெறும் one-off demos மட்டும் அல்ல. இந்த நான்கு capability மாற்றங்களே இதை இயக்குகின்றன:

  • Native 4K resolution. GPT-Image-2, 3840×2160 (4K landscape) அல்லது 2160×3840 (4K portrait) வரை எந்த dimensions-யையும் accept செய்கிறது; இது gpt-image-1.5-இன் 1536×1024 ceiling-ஐ விட அதிகம். இது maximum output pixels-ல் 7.5× jump. இப்போது production-ready hero images, print-quality posters, cinematic stills ஆகியவற்றை ஒரு tool call-இல் உருவாக்கலாம்.
  • Free-form resolutions. முந்தைய gpt-image models உங்களை மூன்று presets-களில் (square, landscape, portrait) lock செய்தன. GPT-Image-2, இரு edges-மும் 16-ன் multiples ஆக இருக்கும் எந்த WxH-ஐயும் accept செய்கிறது; max edge ≤ 3840px, total pixels 655,360 முதல் 8,294,400 வரை, மற்றும் long-to-short edge ratio ≤ 3:1. இதனால் banners, social crops, app icons, book covers, film frames என ஆயிரக்கணக்கான aspect ratios-ஐ cover செய்யலாம்.
  • High-fidelity reference processing by default. பழைய input_fidelity: "high" flag இப்போது எப்போதும் on. நீங்கள் pass செய்யும் ஒவ்வொரு reference image-உம் full detail-இல் process செய்யப்படுகிறது — brand logos crisp ஆகவே இருக்கும், product textures edits-ல் survive செய்கின்றன, character faces turns across-லும் அடையாளம் காணக்கூடியவையாக இருக்கும். quality/speed trade-off-ஐ tune செய்ய தேவையில்லை.
  • Faster low-quality drafts. quality: "low" 1024×1024-இல் Smart AIPI வழியாக $0.003 cost ஆகிறது, மேலும் சுமார் 20–40 seconds-இல் return ஆகிறது. இதை கைவிடும் அளவுக்கு குறைந்த செலவாக வைத்திருக்கிறது — $0.10+ high-quality render-க்கு commit செய்வதற்கு முன் prompt exploration மற்றும் UI previews-க்கு சிறந்தது.

Pricing: OpenAI Direct-ஐ விட 50% குறைவு

GPT-Image-2-க்கு OpenAI direct API pricing 1024×1024-இல் $0.006 low / $0.053 medium / $0.211 high. Square அல்லாத sizes (1024×1536, 1536×1024) square rate-ன் 1.5× ஆகும்.

Smart AIPI வழியாக, ஒவ்வொரு tier-மும் OpenAI retail-இன் சரியாக 50%:

Quality Resolution OpenAI direct Smart AIPI You save
Low1024×1024$0.006$0.00350%
Medium1024×1024$0.053$0.026550%
High1024×1024$0.211$0.105550%
Low1024×1536 / 1536×1024$0.005$0.0045~50%
Medium1024×1536 / 1536×1024$0.041$0.0398~50%
High1024×1536 / 1536×1024$0.165$0.1583~50%

ஒரு சாதாரண creative iteration cycle — 1024×1024-இல் 10 low-quality drafts, பின்னர் ஒரு high-quality 1536×1024 final render — Smart AIPI மூலம் $0.19 ஆகும்; OpenAI direct-இல் $0.38. இதை தினமும் 100 இத்தகைய cycles உருவாக்கும் studio-க்கு scale செய்தால், எந்த கூடுதல் முயற்சியும் இல்லாமல் மாதத்திற்கு $570 சேமிக்கலாம்.

இந்த தள்ளுபடியில் GPT-Image-2-ஐ வேறு எந்த provider-மும் வழங்கவில்லை. OpenRouter, OpenAI direct pricing-ஐ margin-ுடன் pass through செய்கிறது. Fal, Replicate, மற்றும் Vertex ஆகியவை OpenAI models-ஐ host செய்யவில்லை. Smart AIPI ChatGPT Business subscription image capacity-ஐ aggregate செய்து, savings-ஐ நேரடியாக pass through செய்கிறது.

Multi-Reference Edits: சேர்க்கக்கூடிய Creative Workflows

GPT-Image-2-இன் edit endpoint ஒரு call-இல் பல reference images-ஐ accept செய்கிறது. இதுதான் உண்மையான creative workflows-ஐ unlock செய்கிறது — product composites, scenes across brand-consistent characters, collage generation.

அதிகாரப்பூர்வ OpenAI SDK அனுப்பும் எல்லா வடிவங்களையும் Smart AIPI support செய்கிறது:

Python SDK (multipart with image[])

from openai import OpenAI
client = OpenAI(base_url="https://api.smartaipi.com/v1")

result = client.images.edit(
    model="gpt-image-2",
    image=[
        open("body-lotion.png", "rb"),
        open("bath-bomb.png",  "rb"),
        open("incense-kit.png","rb"),
        open("soap.png",       "rb"),
    ],
    prompt="Photorealistic gift basket 'Relax & Unwind' with a ribbon, containing the items in the reference images.",
)

with open("gift-basket.png","wb") as f:
    f.write(base64.b64decode(result.data[0].b64_json))

JSON API (base64 strings array)

curl https://api.smartaipi.com/v1/images/edits \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2",
    "prompt": "Gift basket containing all the items from the references",
    "image": ["<base64-png-1>", "<base64-png-2>", "<base64-png-3>"]
  }'

curl multipart (image[] மற்றும் repeated image இரண்டும் வேலை செய்கின்றன)

curl https://api.smartaipi.com/v1/images/edits \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "model=gpt-image-2" \
  -F "image[][email protected]" \
  -F "image[][email protected]" \
  -F "image[][email protected]" \
  -F "image[][email protected]" \
  -F "prompt=Gift basket with all the referenced items"

Mask Inpainting: Surgical Edits

குறிப்பிட்ட region-க்கு edits-ஐ கட்டுப்படுத்த image உடன் mask-ஐ pass செய்யுங்கள். mask-இல் white pixels rewrite செய்ய வேண்டிய areas-ஐ குறிக்கும்; black pixels மாற்றப்படாமல் preserve ஆகும்.

curl https://api.smartaipi.com/v1/images/edits \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "model=gpt-image-2" \
  -F "image=@sunlit_lounge.png" \
  -F "[email protected]" \
  -F "prompt=Replace the pool with a flamingo float"

Mask format requirements: primary image-இன் அதே pixel dimensions, alpha channel கொண்ட PNG, ≤ 50MB. உங்கள் source mask RGB ஆக இருந்து transparency இல்லையெனில், OpenAI docs-இல் grayscale values-இல் இருந்து alpha channel-ஐ சேர்க்கும் 10-line PIL snippet உள்ளது.

Generate: Basic Request

curl https://api.smartaipi.com/v1/images/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2",
    "prompt": "A photorealistic coffee mug on a weathered oak table",
    "size": "2048x2048",
    "quality": "high"
  }'

Response என்பது standard OpenAI shape — { "created": ..., "data": [{ "b64_json": "..." }] }. PNG bytes-ஐப் பெற b64_json-ஐ Base64 decode செய்யுங்கள்.

Output Formats: PNG, JPEG, WebP

output_format-ஐப் பயன்படுத்தி container-ஐ control செய்யுங்கள். JPEG, PNG-ஐ விட குறிப்பிடத்தக்க அளவில் வேகமாக stream back ஆகும், மேலும் latency, lossless fidelity-ஐ விட முக்கியமானபோது இது சரியான default. File size-ஐ tune செய்ய JPEG அல்லது WebP-ஐ output_compression (0–100) உடன் pair செய்யுங்கள்.

{
  "model": "gpt-image-2",
  "prompt": "Cinematic landscape, golden hour",
  "size": "3840x2160",
  "quality": "high",
  "output_format": "jpeg",
  "output_compression": 85
}

Supported Parameters (v1/images/generations & v1/images/edits)

  • modelgpt-image-2 (default), gpt-image-1.5, gpt-image-1, gpt-image-1-mini. Legacy aliases dall-e, dall-e-3, gpt-image, gpt-image-latest அனைத்தும் gpt-image-2-க்கு map ஆகும்.
  • prompt — required text instruction.
  • n — batch size, 1–10. Codex image tool ஒரு call-க்கு ஒரு image உருவாக்குவதால் Smart AIPI server-side-ல் loop செய்கிறது.
  • sizeauto அல்லது gpt-image-2 constraints-ஐ பூர்த்தி செய்யும் எந்த WxH-மும் (16-ன் multiples, edges ≤ 3840, 655,360 ≤ pixels ≤ 8,294,400, long:short ≤ 3:1).
  • qualitylow / medium / high / auto (defaults to medium).
  • output_formatpng (default) / jpeg / webp.
  • output_compression — 0–100, jpeg/webp மட்டும்.
  • backgroundauto / opaque. Transparent-ஐ gpt-image-2 support செய்யாது; அதை வேண்டுமானால் gpt-image-1.5-ஐ பயன்படுத்துங்கள்.
  • moderationauto (default) / low.
  • image (edits only) — single base64 string அல்லது base64 strings array (JSON) / image அல்லது image[] multipart file parts.
  • mask (edits only) — single base64 string (JSON) / multipart file. White=edit, black=preserve.

Response Shape

OpenAI-ன் /v1/images response-க்கு முழுமையாக ஒத்தது. ஒரு field மட்டும் விருப்பமாக சேர்க்கப்படுகிறது: Codex backend ஒரு revised_prompt-ஐ emit செய்தால், Smart AIPI அதை ஒவ்வொரு image item-இலும் surface செய்கிறது.

{
  "created": 1777064910,
  "data": [
    {
      "b64_json": "iVBORw0KGgo...",
      "revised_prompt": "A detailed photorealistic coffee mug..."
    }
  ]
}

Get Started

Free credits included. ஒவ்வொரு புதிய account-க்கும் $5 free credits கிடைக்கும் — இது சுமார் 1,650 low-quality drafts, 188 medium renders, அல்லது 47 high-quality hero images-க்கு போதுமானது. smartaipi.com/signup-இல் sign up செய்யுங்கள்.

  1. Sign up at smartaipi.com/signup (free credits, no credit card)
  2. Create an API key in the dashboard
  3. Set your base URL to https://api.smartaipi.com/v1
  4. Use model gpt-image-2

அதே OpenAI-compatible API shape, அதே Python / JavaScript / curl code, அதே image-generation tools — இப்போது OpenAI-ன் newest flagship image model, பாதி விலையில்.

GPT-Image-2 Image Generation Image Editing OpenAI Cheapest API Multi-Reference Mask
S
எழுதியவர்
Smart AIPI

OpenAI-compatible API gateway. Frontier AI models ஐ 75% குறைந்த செலவில் அணுகுங்கள்.

இலவசமாக தொடங்குங்கள்

செய்தி அனுப்பப்பட்டது

2 வேலை நாட்களுக்குள் உங்களைத் தொடர்புகொள்வோம்.

ஆதரவை தொடர்பு கொள்ளவும்

கேள்வி உள்ளதா அல்லது உதவி வேண்டுமா? எங்களுக்கு ஒரு செய்தி அனுப்புங்கள்; 2 வேலை நாட்களுக்குள் பதிலளிப்போம்.