Skip to content

4o-image-api ​

This page lists parameters from the ModelFold model catalog.

Overview ​

FieldValue
Model ID4o-image-api
Family slug4o-image-api
ModalityImage Generation (image)
EndpointPOST /v1/images/generations

Request example ​

bash
export API_BASE="https://modelfold.ai/v1"
export MODELFOLD_API_KEY="mf-..."   # 在控制台 API Key 页面创建
curl -X POST "$API_BASE/images/generations" \
  -H "Authorization: Bearer $MODELFOLD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"4o-image-api","size":"1:1","prompt":"A beautiful sunset over the mountains"}'

Required parameters ​

Required: size, prompt.

Pass model parameters at the top level; do not wrap them in input. Replace sample media URLs with your own publicly accessible files. The request waits for generation and returns data[].url.

See also ​

ModelFold — one API for all the best AI models.