AGTCloud API Docs
GuidesAPI ReferenceIntegrations and resourcesUpdate and help
Vendor parameter differences

Step parameter and protocol differences

Understand Step parameter differences and usage across compatible protocols.

For Step models, adjust your chosen protocol's parameters using this page. See Chat Completions, Responses and Messages for full request and response structures.

Applicable models

ModelSupported protocols
step-5New
step-5-preview
Chat Completions, Responses, Messages

The shared rules below apply to both models; each protocol table identifies differences in reasoning effort.

Chat Completions differences

FieldDifference
reasoning_effortstep-5 supports low/medium/high/xhigh/max; step-5-preview supports low/medium/high
reasoning_formatStep extension, default general, which returns reasoning through reasoning; use deepseek-style to read reasoning_content
Reasoning fields in responsesRead from choices[].message in non-streaming responses and choices[].delta in streams; when reasoning and reasoning_content are both returned, they contain the same text, so do not append both
max_tokensUse this field to set the output budget; both models have a 64K output limit
tools[].typeUse function; neither model supports the built-in web_search tool

Responses differences

FieldDifference
reasoning.effortstep-5 supports low/medium/high/xhigh/max; step-5-preview supports low/medium/high
tools[].type, tool_choiceOnly function tools and the string auto for tool selection are supported
max_output_tokensLimits both reasoning and the final answer; an insufficient budget may return status: "incomplete" with only a reasoning item and no final message
Tool call historyReturn the original function_call together with function_call_output in the next request, matched by call_id
Streaming reasoningRead reasoning deltas from response.reasoning_text.delta; keep them separate from answer deltas in response.output_text.delta

Messages differences

FieldDifference
output_config.effortstep-5 supports low/medium/high/xhigh/max; step-5-preview supports low/medium/high
temperatureSupports 0~2; do not apply Claude-specific sampling ranges or restrictions
top_kSupports 0~500
max_tokensRequired and greater than 0; an output budget of 0 is not allowed

Cache differences

Field / mechanismDifference
Automatic prefix cachingBoth models cache prefixes in blocks of 256 tokens; inputs shorter than 256 tokens cannot hit the cache. Keep prefixes and media content identical across repeated requests
Chat: usage.cached_tokensNumber of cached input tokens; a value greater than 0 indicates a hit
Responses: usage.input_tokens_details.cached_tokensNumber of cached input tokens
Cache retentionEvicts the least recently used entries (LRU); neither a fixed retention period nor a hit on every request is guaranteed

Media input differences

InputProtocol content blockDifference
ImageChat: image_urlUse a public URL or Base64 Data URL in image_url.url; detail supports low/high
VideoChat: video_urlvideo_url.url accepts a public URL, Base64 Data URL or the provider's stepfile:// reference
ImageResponses: input_imageimage_url accepts a string or an object containing url and detail; supports public URLs and Base64 Data URLs
VideoResponses: input_videoStep-specific content block; video_url accepts a public URL string or an object containing url and detail
ImageMessages: imageSet source to type: "url" with url, or type: "base64" with media_type and data

Media limits

MediaLimits
ImageUp to 60 images per request; supports JPG/JPEG, PNG, WebP and static GIF
URL videoA single MP4 file must be smaller than 128 MB; a duration under 5 minutes is recommended
stepfile://Provider file-service reference; upload to the Step file service and obtain a file ID before using it

Request examples

Replace MODEL_ID with the full model ID available at your chosen protocol endpoint and use your own API Key. All three examples use the low effort supported by both models.

curl 'https://api.agtcloud.ai/v1/chat/completions' \
  -H 'Authorization: Bearer your-api-key' \
  -H 'Content-Type: application/json' \
  --data '{
    "model": "MODEL_ID",
    "messages": [{"role": "user", "content": "Explain how to troubleshoot an API timeout in three points"}],
    "reasoning_effort": "low",
    "reasoning_format": "general",
    "max_tokens": 4096
  }'

Official references

On this page