Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
Skip to Content
API ReferenceInferenceImages

Overview

Edit images in the OpenAI Images shape, billed per output megapixel. In preview: available to selected organizations. Served by the inference endpoint (inference.openrelay.inc).

Images

Edit images in the OpenAI Images shape, billed per output megapixel. In preview: available to selected organizations. Served by the inference endpoint (inference.openrelay.inc).

Answer typed questions about an input POST

Answers typed questions about a text or JSON input: a choice, a score or a yes/no, with probabilities. Bills input tokens only. Each answer carries its probabilities and a confidence; nothing is generated. Served by openrelay/qwen3.6-35b-decide, which reads the probability of each option's letter at one token; check a model's supported_apis on GET /v1/models for decisions. Online only: the Batch API does not accept /v1/decisions. Requires a funded balance. Any field this schema does not list is rejected with 400 unknown_field. stream is dropped: a decision is always a single JSON response. Limits: 1 to 64 questions per request, 10 MiB request body.

Edit an image from a prompt POST

Edits an input image as a text prompt asks, in the OpenAI Images shape, and returns the result inline as base64. In preview for selected organizations. Call it with a model whose supported_apis on GET /v1/models include images_edits; the model's images block lists its sizes and limits. Send multipart/form-data with the image as a file part, as the OpenAI SDKs do, or application/json with the image as a base64 data URL. Input images are PNG, JPEG or WebP, at most 10 MiB each; a URL to fetch, a file id and a mask are refused with unsupported_value. With size auto or no size, the output takes the model's size nearest the input image's aspect ratio, read after the image's EXIF orientation is applied, so a portrait photo comes back portrait; the response's size names it. Sizes are a closed list per model: a size off it is refused with invalid_size. Never streams. Requires a funded balance. Billed on the output pixels delivered (usage.pixels) at the model's price per megapixel; input images are not billed. A request returns all n images or an error and bills nothing on an error, a content policy refusal included. The prompt, the input images and every output pass content checks that a request cannot adjust. The request body is capped at 16 MiB.

On this page