Actions14
- Chat Actions
- Image Actions
- Video Actions
- Agent Actions
- Audio Actions
- Tools Actions
Chat → Completion
AI-generatedSummary
Generates a chat completion using the selected Qiniu AI model.
Inputs
- model (required) — The model to use for chat completion.
- inputType (required) — Input format: simple prompt or full message array.
- prompt (required) — The prompt to send to the model (required when inputType is simple).
- messages (required) — Conversation history as message objects with role and content (required when inputType is messages).
- systemMessage — Optional system message to set context (shown with simple input type).
- options — Generation parameters including temperature, max tokens, JSON mode, and top P.
Output shape
The normalized chat completion response.
Returns content, role, finishReason, usage (prompt/completion/total tokens), and the raw API response.