Qiniu AI icon

Qiniu AI

Interact with Qiniu AI services - Chat, Image, Video, Agent and more

Chat → Completion

AI-generated

Summary

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.

Links

Discussion