We recommend
step-3.7-flash with detail enabled by default for the best visual quality.Capability limits
step-3.7-flashsupports JPG/JPEG, PNG, static GIF, and WebP. Images can be passed via URL or Base64.- A single request supports up to 60 images. If you exceed the limit, summarize images first and use the summaries as context.
How to use image understanding
Simple image understanding
Add animage_url item to the message content. URLs are preferred over Base64 for performance.
Multi-turn with images
Keep prior image messages in the conversation for follow-up questions.Multiple images
Pass multipleimage_url entries. Maximum images depend on the model (10–50 per request). If you exceed the limit, see the guidance below.
Use the detail parameter
step-3.7-flash defaults to low detail for speed (about 169 tokens per image). Set detail="high" to capture fine details; token usage then scales with image size and latency increases.
Use Base64 images
If you prefer not to host images, send them as Base64 data URLs. Convert the image to Base64, then prefix it with the appropriate media type.
- python
- Node.js
copy
Speed up image understanding with the Files API
If you pass an external URL, Stepfun must download it, so network speed affects latency. Host images on CDN or high-bandwidth storage. For frequent reuse (e.g., few-shot), upload via the Files API with purpose=storage and prefix the returned File ID withstepfile:// in chat messages. The model will fetch directly from Stepfun storage, avoiding repeated downloads.

FAQ
Instruction-following when many images
Images become image tokens. In long contexts the model may focus on later prompts. Place images early and instructions later so the model prioritizes the instructions.Exceeding image limits
If you exceed the image cap, first summarize images with the vision model, then use those summaries as context.Optimize images to reduce first-token latency
If latency matters more than perfect detail, resize or compress images while preserving most information.- Option
- Option
- Resize images:
- For
detaillow/default: scale the longest side to 728px (keep aspect ratio). - For
detailhigh: scale the longest side to a multiple of 504px.
- For
- Compress images:
- Set quality to ~80 to shrink file size without major quality loss.
Handling transparent PNG backgrounds
step-3.7-flash supports transparent PNGs but treats transparent regions as black. Preprocess by placing the image on a white background:

