For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DocsAPI ReferenceSDKs
DocsAPI ReferenceSDKs
      • Overview
      • Chat Completions
      • Prompt Templates
      • Files & Batches
      • Embeddings
      • Image Generation
      • Responses (Reasoning)
      • Compare (Multi-model)
      • Models
      • Error Handling
LogoLogo
On this page
  • Responses API (Reasoning)
Go SDK

Responses API (Reasoning)

||View as Markdown|
Was this page helpful?
Edit this page
Previous

Image Generation

Next

Compare (Multi-model)

Built with

Responses API (Reasoning)

Access models like OpenAI’s o-series that require a specific reasoning interface.

1resp, err := client.Responses.Create(ctx, meshapi.ResponsesParams{
2 Model: "openai/o3-mini",
3 Input: "Explain quantum computing in one sentence.",
4 Reasoning: &meshapi.ReasoningParams{
5 Effort: "medium",
6 },
7})
8
9if err == nil {
10 fmt.Println(resp.Output)
11}

Streaming is also supported via client.Responses.Stream(ctx, params).