Skip to main content

Documentation Index

Fetch the complete documentation index at: https://platform.stepfun.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Single Chat Completion response returned by the model.

Attributes

  • id string
    Chat response ID.
  • object string
    Response object type, always chat.completion.
  • model string
    Model name.
  • created timestamp
    Unix timestamp (seconds) when the response was generated.
  • choices object array
    List of response choices.
  • usage object
    Token usage statistics.

Example

{
	"id": "b7b56af0-52a6-483f-a589-948182676a1b",
	"object": "chat.completion",
	"created": 1709893411,
	"model": "step-3.5-flash",
	"choices": [
		{
			"index": 0,
			"message": {
				"role": "assistant",
				"content": "Hello! StepFun specializes in artificial intelligence and provides AI solutions across NLP, computer vision, and machine learning to help customers improve efficiency and create value across industries."
			},
			"finish_reason": "stop"
		}
	],
	"usage": { "prompt_tokens": 83, "completion_tokens": 176, "total_tokens": 259 }
}