# GPT-6.1 Sol

> GPT-6.1 Sol API on PoYo. Use Chat Completions or Responses at $1.6 input and $8 output per million tokens, 20% below official standard rates.

## Overview

- Endpoint: `https://api.poyo.ai/v1/chat/completions`
- Page: https://poyo.ai/models/gpt-6-1-sol
- Model page ID: `gpt-6-1-sol`
- API model ID: `gpt-6.1-sol`
- Category: Chat
- Auth: `Authorization: Bearer $POYO_API_KEY`
- Create a key at https://poyo.ai/dashboard/api-key

This model uses a synchronous chat API. POST the JSON body below. There is no `task_id` and no status polling.

## Pricing

- Input: 320 credits ($1.60) per 1M tokens
- Output: 1600 credits ($8.00) per 1M tokens
- Cache Read: 16 credits ($0.080) per 1M tokens
- Cache Write: 400 credits ($2.00) per 1M tokens

For more details, see https://poyo.ai/models/gpt-6-1-sol.

## API Information

POST the JSON body below. Fields are top-level unless noted.

### Request body

- `model` (`ModelEnum`, required):
  OpenAI model id. `gpt-5-6-sol`, `gpt-5-6-terra`, and `gpt-5-6-luna` only support Responses.
  - Default: `"gpt-5.5"`
  - Options: `"gpt-6.1-sol"`, `"gpt-6.1-terra"`, `"gpt-6-astra"`, `"gpt-6-sol"`, `"gpt-6-luna"`, `"gpt-5-6-sol"`, `"gpt-5-6-terra"`, `"gpt-5-6-luna"`, `"gpt-5.5"`, `"gpt-5.4"`, `"gpt-5.2"`
- `instructions` (`string`, optional):
  System or developer instructions that guide the model response.
- `tools` (`list`, optional):
  Tools available to the model. Tool support depends on the selected model.
  - Array of ResponsesTool
- `tool_choice` (`string | object`, optional):
  Controls how the model selects tools.
  - One of: string | object
- `max_output_tokens` (`integer`, optional):
  Maximum number of output tokens to generate.
  - Range: `1` to `+∞`
  - Examples: `200`
- `max_tokens` (`integer`, optional):
  Legacy compatibility field for maximum output tokens.
  - Range: `1` to `+∞`
  - Examples: `200`
- `stream` (`boolean`, optional):
  Whether to use streaming output in SSE format.
  - Default: `false`
  - Examples: `false`
- `store` (`boolean`, optional):
  Whether the response should be stored when supported.
  - Examples: `false`
- `reasoning` (`object`, optional):
  Reasoning configuration, when supported by the selected model.
  - Examples: `{"effort":"medium"}`
- `text` (`object`, optional):
  Text output configuration, such as structured output format options when supported.
- `metadata` (`object`, optional):
  Custom metadata key-value pairs for your request.
- `previous_response_id` (`string`, optional):
  Previous response ID for continuing a conversation.
- `include` (`list`, optional):
  Additional response fields to include, when supported.
  - Array of string
- `parallel_tool_calls` (`boolean`, optional):
  Whether the model may call multiple tools in parallel.
- `truncation` (`string`, optional):
  Truncation behavior for long context, when supported.
  - Examples: "auto"
- `user` (`string`, optional):
  End-user identifier for abuse monitoring and request tracing.
- `background` (`boolean`, optional):
  Whether to run the response in background mode, when supported.
- `service_tier` (`string`, optional):
  Service tier selection, when supported.
  - Examples: "auto"
- `prompt` (`object`, optional):
  Prompt object, when supported by the selected model.
- `temperature` (`float`, optional):
  Controls output randomness, range 0-2.
  - Range: `0` to `2`
  - Examples: `1`
- `top_p` (`float`, optional):
  Nucleus sampling parameter, range 0-1.
  - Range: `0` to `1`
  - Examples: `1`

Required Parameters Example:

```json
{
  "model": "gpt-6.1-sol",
  "input": "Write a product tagline in one sentence.",
  "max_output_tokens": 120
}
```

Full Example:

```json
{
  "model": "gpt-6.1-sol",
  "input": "Write a product tagline in one sentence.",
  "max_output_tokens": 120
}
```

Image understanding:

```json
{
  "model": "gpt-6.1-sol",
  "input": [
    {
      "role": "user",
      "content": [
        {
          "type": "input_text",
          "text": "Describe this image in one paragraph."
        },
        {
          "type": "input_image",
          "image_url": "https://example.com/image.jpg"
        }
      ]
    }
  ],
  "max_output_tokens": 300
}
```

Web search:

```json
{
  "model": "gpt-6.1-sol",
  "input": "Use web search to find the latest product update on poyo.ai. Reply with the title and URL only.",
  "tools": [
    {
      "type": "web_search_preview"
    }
  ],
  "tool_choice": "auto",
  "max_output_tokens": 2000
}
```

### Output Schema

The response is returned from the same request. There is no separate status endpoint.

Example Response:

```json
{
  "id": "resp_9876543210",
  "object": "response",
  "created_at": 1677652288,
  "status": "completed",
  "model": "gpt-6.1-sol",
  "output": [
    {
      "id": "msg_123",
      "type": "message",
      "status": "completed",
      "role": "assistant",
      "content": [
        {
          "type": "output_text",
          "text": "Launch faster with a smarter AI workspace built for teams."
        }
      ]
    }
  ],
  "usage": {
    "input_tokens": 12,
    "output_tokens": 14,
    "total_tokens": 26
  }
}
```

## Usage Examples

### cURL

```bash
curl --request POST \
  --url https://api.poyo.ai/v1/chat/completions \
  --header "Authorization: Bearer $POYO_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"model":"gpt-6.1-sol","input":"Write a product tagline in one sentence.","max_output_tokens":120}'
```

### Python

```python
import json
import os
import requests

headers = {
    "Authorization": f"Bearer {os.environ['POYO_API_KEY']}",
    "Content-Type": "application/json",
}
payload = json.loads("{\n  \"model\": \"gpt-6.1-sol\",\n  \"input\": \"Write a product tagline in one sentence.\",\n  \"max_output_tokens\": 120\n}")

response = requests.post("https://api.poyo.ai/v1/chat/completions", headers=headers, json=payload)
response.raise_for_status()
print(response.json())
```

### JavaScript

```javascript
const headers = {
  Authorization: `Bearer ${process.env.POYO_API_KEY}`,
  "Content-Type": "application/json",
};

const response = await fetch("https://api.poyo.ai/v1/chat/completions", {
  method: "POST",
  headers,
  body: JSON.stringify({
  "model": "gpt-6.1-sol",
  "input": "Write a product tagline in one sentence.",
  "max_output_tokens": 120
}),
});

console.log(await response.json());
```

## Additional Resources

### Documentation

- [Model Playground](https://poyo.ai/models/gpt-6-1-sol)
- [API Documentation](https://docs.poyo.ai/api-manual/chat-series/openai)
- [API Documentation (Markdown)](https://docs.poyo.ai/api-manual/chat-series/openai.md)

### Other agent-readable surfaces

- [Platform overview](https://poyo.ai/llms.txt)
- [Documentation index](https://docs.poyo.ai/llms.txt)
- [Full documentation text](https://docs.poyo.ai/llms-full.txt)
- Any other model: `https://poyo.ai/models/<model-id>/llms.txt`
