Images & Video
Multimodal parameters differ by model. Check Model Square for capabilities, billing units and supported dimensions.
Image generation
bash
curl https://api.noflex.work/v1/images/generations \
-H "Authorization: Bearer sk-your-flex247-key" \
-H "Content-Type: application/json" \
-d '{
"model": "your-image-model-id",
"prompt": "A clean product hero image, soft studio lighting",
"size": "1024x1024",
"n": 1
}'Responses may contain image URLs or Base64 data. Read the returned fields instead of assuming that every model uses the same format.
Video generation
Video is commonly asynchronous: submit a job, store its task ID, poll status and download the completed result.
bash
curl https://api.noflex.work/v1/videos \
-H "Authorization: Bearer sk-your-flex247-key" \
-H "Content-Type: application/json" \
-d '{
"model": "your-video-model-id",
"prompt": "A cinematic product reveal with slow camera movement"
}'Model-specific behavior
Paths and fields for duration, aspect ratio, first or last frames and task status may differ. Follow the model requirements shown by Flex247 when a model has dedicated parameters.
Production guidance
- Use dedicated keys and quotas for image and video workloads.
- Store task IDs to avoid duplicate submissions and charges after a network interruption.
- Validate user prompts and input size.
- Copy completed assets to your own object storage instead of relying on temporary URLs.