The Generate Image API creates an AI-generated image based on a text prompt. You can choose from multiple AI image models, specify an aspect ratio, apply a visual style, and optionally provide a reference image to guide the output. The API returns a job ID that you can use to poll for the result once the image generation is complete.
A valid API key is required to use this endpoint. Obtain your API key from the API Access page in your Pictory dashboard.
A text description of the image you want to generate. The prompt must be between 5 and 5,000 characters.Example:"A serene mountain landscape at sunset with a reflective lake in the foreground"
The AI model to use for image generation. Each model produces different visual styles and quality levels. Defaults to seedream3.0 if not specified.Supported models:seedream3.0, flux-schnell, nanobanana, nanobanana-proModel Capabilities and Pricing:
The aspect ratio for the generated image. The available values depend on the selected model. Defaults to the first supported aspect ratio of the chosen model. Refer to the model table above for supported aspect ratios per model.
Replace YOUR_API_KEY with your actual API key from the API Access page.
curl --request POST \ --url 'https://api.pictory.ai/pictoryapis/v1/aistudio/images' \ --header 'Authorization: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "prompt": "A serene mountain landscape at sunset with a reflective lake in the foreground", "model": "seedream3.0", "aspectRatio": "16:9", "style": "photorealistic" }'
After receiving the jobId, poll for the image generation result using the Get Image Generation Job endpoint. Use a polling interval of 10–30 seconds to check the job status.