1
Open the API console, enable the required billing, and create a server-side API key. Follow the image or video guide for the output you want to generate. Choose a supported model, describe the visual clearly, and pass reference images only in the formats the endpoint accepts. For an image request, inspect the returned output before showing or storing it. For video, save the request identifier and poll for completion, handling failed or blocked generations in your application. Test realistic inputs and review product details, text, motion, and audio where applicable. Check the model’s resolution and duration constraints before building your interface. Estimate image and per-second video charges from the current rate card, and set a budget before running large batches of variations.