Endprompt supports three image workflows:Documentation Index
Fetch the complete documentation index at: https://docs.endprompt.ai/llms.txt
Use this file to discover all available pages before exploring further.
- Image Generation — Create images from text descriptions
- Vision / Image Analysis — Analyze images and return structured JSON
- Image Editing — Modify existing images based on instructions
Setting Up Image Generation
Generate images by combining an image output field with an image generation model.Add an Image Output Field
In the Output Schema tab, add a field with type Image. This signals that the endpoint produces images instead of JSON.
Set Default Config (Optional)
Use the output field’s Example Value to store default generation parameters as JSON:
Configure Custom Parameters
Open the Custom Parameters panel on the prompt to set generation options:
Write the Prompt
Write a descriptive prompt — no JSON output instructions needed. The rendered prompt is sent directly as the image description.
When an endpoint has image output fields, Endprompt automatically skips JSON output instructions and routes the request to the model’s image generation API.
Setting Up Vision / Image Analysis
Analyze images and return structured data by combining image inputs with a vision-capable model.Write the Template
Describe what to analyze — the image is automatically included as visual context.
Image Editing
Edit existing images by combining image inputs with image outputs.Set Up the Endpoint
Create an endpoint with:
- An Image input field (the reference image)
- An Image output field (the edited result)
- Optional text inputs for edit instructions
Create a Prompt
Select an image generation model (e.g., gpt-image-1) and write your edit instructions:
When input images are present, Endprompt automatically routes to the provider’s image editing API instead of the generation API.
Custom Parameters Reference
Image generation parameters are configured per-prompt via the Custom Parameters panel. These parameters are model/provider-specific — consult your provider’s API documentation for supported values.Parameter Precedence
Parameters are applied in this order (later values override earlier ones):- Hardcoded defaults — Built-in sensible defaults
- Output Field Example Value — JSON config set on the image output field
- Custom Parameters — Per-prompt overrides from the Custom Parameters panel
Common OpenAI Image Parameters
| Parameter | Values | Description |
|---|---|---|
size | 1024x1024, 1024x1536, 1536x1024 | Output image dimensions |
quality | low, medium, high, auto | Generation quality level |
n | 1 - 4 | Number of images to generate |
background | auto, transparent, opaque | Background style (PNG output) |
Pricing
Image generation models typically use different pricing than text models:- Per-token pricing: Some models (gpt-image-1) charge based on input and output tokens, where image output tokens reflect resolution
- Quality impact: Higher quality settings produce more output tokens and cost more
- Size impact: Larger image dimensions increase output token usage
Limitations
- Maximum 16 input images per request for editing workflows
- Supported input formats: JPEG, PNG, WebP
- Images are sent as base64 data URIs — very large images increase request size and latency
- Bulk CSV testing does not support image inputs
- Image generation responses don’t include standard JSON output fields
Next Steps
Input Schema
Define image input fields
Output Schema
Configure image output fields
Custom Parameters
Set up generation parameters
Code Examples
Image API integration examples

