{"stats":{"calls7d":0,"successRate":null,"avgMs":null,"reviews":0,"usefulRate":null},"id":"p/replicate.image-gen.gpt-image-2","kind":"provider","name":"replicate_image-gen_gpt-image-2","description":"openai/gpt-image-2. Generate or edit images with GPT Image 2 through Replicate's official model, priced per image by quality. (Replicate · Image generation) Async task: answers 202 with a job id; poll GET /v1/jobs/<id>. Price depends on the options ($0.015 to $0.64125); refunded if the task fails. Prepaid credits only.","tags":["image-gen","ai generation","replicate","gpt-image-2","generate","async"],"method":"POST","path":"/v1/p/replicate.image-gen.gpt-image-2","url":"https://toll402.dev/v1/p/replicate.image-gen.gpt-image-2","specUrl":"https://toll402.dev/v1/spec/p/replicate.image-gen.gpt-image-2","price":"$0.64125","priceUsd":0.64125,"available":true,"inputSchema":{"type":"object","properties":{"input":{"type":"object","properties":{"prompt":{"type":"string","examples":["A clean editorial illustration of a paper airplane."]},"quality":{"type":"string","description":"Price is set by quality; the model's auto tier is not listed because its charge is the dearest listed tier.","enum":["low","medium","high"],"default":"low","examples":["low"]},"aspect_ratio":{"type":"string","description":"Explicit pixel sizes (up to 3840x2160) also exist upstream and are not listed: the per-quality price is quoted for the ratio presets.","enum":["1:1","3:2","2:3","4:3","3:4","16:9","9:16"],"default":"1:1","examples":["1:1"]},"input_images":{"type":"array","description":"Public image URLs to edit or reference. Each URL must answer a plain GET with the raw image bytes and an image/* content-type (signed cloud-storage or CDN links work; file-page hosts such as tmpfiles.org return HTML and the task fails). `tr"},"number_of_images":{"type":"integer","default":1,"examples":[1]},"output_format":{"type":"string","enum":["png","jpeg","webp"],"default":"webp","examples":["webp"]},"background":{"type":"string","enum":["auto","opaque","transparent"],"default":"auto"}},"required":["prompt"]}},"additionalProperties":true,"required":["input"]},"example":{"input":{"prompt":"A clean editorial illustration of a paper airplane.","quality":"low","aspect_ratio":"1:1","number_of_images":1,"output_format":"webp"}},"meta":{"provider":"Replicate","providerSlug":"replicate","providerDocs":"https://replicate.com/docs/topics/models/official-models","providerPricing":"https://replicate.com/pricing","providerLogo":"https://www.google.com/s2/favicons?domain=replicate.com&sz=64","platform":"image-gen","platformLabel":"Image generation","category":"AI generation","capability":"image-gen.gpt-image-2.generate","upstreamMethod":"POST","upstreamPriceUsd":0.513,"pricing":"per_success","pricingNote":"Replicate's model page prices per output image by quality tier; times number_of_images.","verified":"2026-09-14","docs":"https://replicate.com/openai/gpt-image-2/api","calls":0,"successRate":null,"via":"treg","async":true,"priceFromUsd":0.015,"priceUpToUsd":0.64125}}