AGTCloud API Docs
GuidesAPI ReferenceIntegrations and resourcesUpdate and help

Text and chat

Build text generation and multi-turn conversations with Chat Completions or Responses.

Overview

AGTCloud provides text generation and multi-turn chat capabilities. After selecting a model, send requests through Chat Completions, Responses, or another text protocol supported by that model.

Core capabilities

  • Text generation: Generate, rewrite, or expand content from instructions.
  • Multi-turn conversations: Continue context through message history or response state.
  • Summarization and classification: Extract key points or organize content into specified categories.
  • Information extraction: Extract required fields and conclusions from input text.
  • Advanced capabilities: Support for streaming, tool calling, and structured output depends on the selected model and protocol.

API access

Base URL

https://api.agtcloud.cn/v1

Chat Completions

curl 'https://api.agtcloud.cn/v1/chat/completions' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer your-api-key' \
  --data '{
    "model": "MODEL_ID",
    "messages": [
      {"role": "system", "content": "Keep the answer concise."},
      {"role": "user", "content": "Describe AGTCloud in one sentence."}
    ]
  }'

Responses

curl 'https://api.agtcloud.cn/v1/responses' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer your-api-key' \
  --data '{
    "model": "MODEL_ID",
    "input": "Describe AGTCloud in one sentence."
  }'

Common parameters

ParameterTypeDescription
modelstringModel ID used by either endpoint
messagesarrayMessage history for Chat Completions
inputstring / arrayText or input items for Responses
streambooleanEnables streaming output
temperaturenumberAdjusts generation randomness when supported by the model
previous_response_idstringContinues an earlier Responses interaction

Chat Completions uses messages; Responses uses input. See the corresponding API Reference for complete parameters. To compare Anthropic Messages, Gemini Generate Content, and other options, see Choose a protocol.

Learn more

On this page