{"slug":"api-koinelix-com-v1-images-generations-4ed192","title":"Generates or edits one image from a prompt and up to 3 reference images","host":"api.koinelix.com","method":"POST","resource":"https://api.koinelix.com/v1/images/generations","category":"image","description":"Generates or edits one image from a prompt and up to 3 reference images. Returns Base64 JSON. 0.006 USDC per x402 call. No account or API key required. A platform API key allows up to 3 attempts per payment. The default model is gpt-image-2.5. Text-to-image defaults for gpt-image-2.6-flare, gpt-imag","price_listed":0.006,"price_asked":0.006,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":697,"reported_calls_30d":65,"reported_payers_30d":20,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"model":"gpt-image-2.6-flare","output_format":"png","prompt":"A watercolor lighthouse at sunrise","quality":"medium","size":"auto"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"allOf":[{"if":{"not":{"properties":{"model":{"enum":["gpt-image-2.6-flare","gpt-image-2.6-sunburst"]}},"required":["model"]}},"then":{"properties":{"output_format":false,"quality":false,"size":false}}},{"if":{"properties":{"model":{"enum":["gpt-image-2.6-flare"]}},"required":["model"]},"then":{"if":{"not":{"anyOf":[{"required":["image_urls"]},{"required":["image_b64"]}]},"properties":{"output_format":{"const":"png"}}},"properties":{"output_format":{"default":"png","enum":["png","jpeg","webp","svg","gif"]},"quality":{"default":"medium","enum":["low","medium","high","xhigh","max","auto"]},"size":{"description":"Custom dimensions must satisfy the published edge, aspect ratio, multiple and pixel limits.","pattern":"^(auto|[1-9][0-9]{1,3}x[1-9][0-9]{1,3})$","type":"string"}},"then":{"properties":{"size":{"default":"auto"}}}}},{"if":{"properties":{"model":{"enum":["gpt-image-2.6-sunburst"]}},"required":["model"]},"then":{"if":{"not":{"anyOf":[{"required":["image_urls"]},{"required":["image_b64"]}]},"properties":{"output_format":{"const":"png"}}},"properties":{"output_format":{"default":"png","enum":["png","jpeg","webp","svg","gif"]},"quality":{"default":"medium","enum":["low","medium","high","xhigh","max","auto"]},"size":{"description":"Custom dimensions must satisfy the published edge, aspect ratio, multiple and pixel limits.","pattern":"^(auto|[1-9][0-9]{1,3}x[1-9][0-9]{1,3})$","type":"string"}},"then":{"properties":{"size":{"default":"auto"}}}}},{"if":{"properties":{"output_format":{"const":"svg"}},"required":["output_format"]},"then":{"not":{"anyOf":[{"required":["image_urls"]},{"required":["image_b64"]}]}}}],"properties":{"image_b64":{"description":"Optional reference images as standard padded Base64 without a data: prefix, at most 10 MiB decoded in total. Sent after image_urls; at most 3 images in total.","items":{"contentEncoding":"base64","minLength":1,"type":"string"},"maxItems":3,"minItems":1,"type":"array"},"image_urls":{"description":"Optional reference image URLs (http or https), passed to the model unchanged. Sent before image_b64; at most 3 images in total.","items":{"format":"uri","maxLength":2048,"minLength":1,"type":"string"},"maxItems":3,"minItems":1,"type":"array"},"model":{"default":"gpt-image-2.5","description":"Optional published Koinelix model ID. Omit it to use the default model (gpt-image-2.5).","enum":["gpt-image-2.5","gpt-image-2.5-flare","gpt-image-2.5-sunburst","gpt-image-2.6-flare","gpt-image-2.6-sunburst"],"maxLength":128,"minLength":1,"type":"string"},"output_format":{"description":"Optional for supported models; see the published defaults. SVG is generation-only, without reference images. GIF returns an animation using provider-default timing. Nine default frames share the platform limit of 40 million pixels.","enum":["png","jpeg","webp","svg","gif"],"type":"string"},"prompt":{"description":"Text description, up to 6000 UTF-8 bytes.","minLength":1,"type":"string"},"quality":{"description":"Optional for supported models. See the published defaults; explicit auto uses the provider's choice.","enum":["auto","low","medium","high","xhigh","max"],"type":"string"},"size":{"description":"Optional only for models declaring image parameters. See the published defaults for text generation; reference-image requests omit size unless explicitly supplied. Custom dimensions obey the model's size constraints.","minLength":1,"type":"string"}},"required":["prompt"],"type":"object"},"bodyType":{"enum":["json"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"created":{"description":"Unix seconds.","type":"integer"},"data":{"items":{"additionalProperties":false,"properties":{"b64_json":{"description":"Base64 image bytes.","type":"string"}},"required":["b64_json"],"type":"object"},"maxItems":1,"minItems":1,"type":"array"},"output_format":{"description":"Actual decoded image format.","type":"string"}},"required":["created","output_format","data"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.006,"price_match":true,"latency_ms":415,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.006,"price_match":true,"latency_ms":731,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.006,"price_match":true,"latency_ms":712,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.006,"price_match":true,"latency_ms":704,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":697,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":696,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":673,"error":null},{"day":"2026-11-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":649,"error":null},{"day":"2026-11-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":625,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":582,"error":null},{"day":"2026-11-16","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.021,"price_match":true,"latency_ms":710,"error":null},{"day":"2026-11-15","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.021,"price_match":true,"latency_ms":234,"error":null},{"day":"2026-11-14","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.021,"price_match":true,"latency_ms":592,"error":null},{"day":"2026-11-13","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.021,"price_match":true,"latency_ms":642,"error":null},{"day":"2026-11-12","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.021,"price_match":true,"latency_ms":681,"error":null},{"day":"2026-11-11","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.021,"price_match":true,"latency_ms":541,"error":null},{"day":"2026-11-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.021,"price_match":true,"latency_ms":621,"error":null},{"day":"2026-11-09","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.021,"price_match":true,"latency_ms":642,"error":null},{"day":"2026-11-08","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.021,"price_match":true,"latency_ms":706,"error":null},{"day":"2026-11-07","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.021,"price_match":true,"latency_ms":647,"error":null},{"day":"2026-11-06","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.021,"price_match":true,"latency_ms":228,"error":null},{"day":"2026-11-05","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.021,"price_match":true,"latency_ms":310,"error":null},{"day":"2026-11-04","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.021,"price_match":true,"latency_ms":416,"error":null}],"description_full":"Generates or edits one image from a prompt and up to 3 reference images. Returns Base64 JSON. 0.006 USDC per x402 call. No account or API key required. A platform API key allows up to 3 attempts per payment. The default model is gpt-image-2.5. Text-to-image defaults for gpt-image-2.6-flare, gpt-image-2.6-sunburst are size=auto, quality=medium, output_format=png. These defaults assume no image parameter overrides.","last_updated":"2026-11-26T11:22:16.897Z","schemes":["exact"]}