The guide for vision models is available here.
Text-to-Image Usage
Portkey supports the OpenAI signature to make text-to-image requests.- NodeJS
- Python
- OpenAI NodeJS
- OpenAI Python
- cURL
Image Editing
Portkey supports the OpenAI signature to make image edit requests using multipart form data.Image edit models currently do not support provider-prefixed model slugs in the request body. Pass the provider in headers and keep
model as the raw provider model name.API Reference
OpenAI gpt-image-1 Parameters
For OpenAI’sgpt-image-1 model, additional parameters are supported:
On completion, the request will get logged in the logs UI where the image can be viewed.
(Note that providers may remove the hosted image after a period of time, so some logs might only contain the url)

Cookbook
Here’s a detailed cookbook on image generation using Portkey which demonstrates the use of multiple providers and routing between them through Configs.Portkey is now PRISMA AIRS AI Gateway. See it in action.
Contact Us

