Prompt

How do I set aspect ratio and style controls in an image API?

Artificial Intelligence / AI Content Generation2 observationsLast seen Nov 10, 2026

Latest observation

Nov 10, 2026OpenAI APIWeb search: off

To set aspect ratio and style controls in an image API, you typically pass them as parameters in your request body. The exact names depend on the provider, but the pattern is usually the same.

Common parameters

1) Aspect ratio

Used to control the output shape, for example:

  • 1:1 — square
  • 16:9 — widescreen
  • 9:16 — portrait
  • 4:3 — standard

Example:

{
  "prompt": "A futuristic city at sunset",
  "aspect_ratio": "16:9"
}

2) Style controls

These influence the look and feel of the image. Common style-related fields include:

  • style: broad visual preset, like "photorealistic", "anime", "illustration"
  • stylize: how artistic or stylized the result should be
  • quality: rendering fidelity or detail level
  • seed: for reproducibility
  • negative_prompt: what to avoid
  • reference_image or image_prompt: to guide style from an example

Example:

{
  "prompt": "A futuristic city at sunset",
  "aspect_ratio": "16:9",
  "style": "cinematic",
  "stylize": 700,
  "quality": "high"
}

Example API request

curl https://api.example.com/v1/images/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A futuristic city at sunset",
    "aspect_ratio": "16:9",
    "style": "cinematic",
    "stylize": 700
  }'

Notes

  • Some APIs use numeric sizes instead of aspect ratio, like 1024x1024 or 1536x864.
  • Some only allow a fixed set of aspect ratios.
  • Style controls can be provider-specific, so check the API docs for supported values.

If you want, I can show you exact request examples for a specific API like OpenAI, Stability AI, Midjourney-style APIs, or Replicate.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (2 observations for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.