aimlapi-images
Installation
SKILL.md
Generate and edit images
Image generation is synchronous: one request, the answer holds the images. The catch is that every image model has its own parameters. FLUX takes image_size and num_images; OpenAI's image models take size and n; others take aspect_ratio or image_urls. Read the schema of the model you call; do not carry parameters over from another model.
When to use
- "Generate an image of …", "make a logo / thumbnail / product shot"
- "Edit this image", "put this product on a beach", "combine these two photos"
Steps
1. Pick the model and read its parameters
List image models with their prices through the aimlapi-models skill (models.py list --type openai/image-generations, or GET /v1/models?type=openai/image-generations&include=pricing, which needs no key). Then read the model's info.docsJson for its parameters: models.py params flux/schnell prints them. Models of type openai/image-editing also serve POST /v1/images/edits.