---
title: "POST /async/chat/create"
method: POST
path: "/async/chat/create"
tags: ["async.chat"]
---

# POST /async/chat/create

`POST /async/chat/create`

Queue a new asynchronous chat completion task for background processing and later retrieval.

## Request body

- object
  - `messages` union[], required
    - union
      - object
        - `role` 'system', required
        - `content` string, required
        - `name` string
      - object
        - `role` 'user', required
        - `content` string, required
        - `name` string
      - object
        - `role` 'assistant', required
        - `content` string
        - `name` string
        - `tool_calls` object[], required
          - `id` string, required
          - `type` 'function', required
          - `function` object, required
            - `arguments` object, required
            - `name` string, required
      - object
        - `role` 'tool', required
        - `content` string, required
        - `tool_call_id` string, required
  - `model` 'Llama-3.1 8B' | 'Llama-3.3 70B', required
  - `reasoning_effort` 'low' | 'medium' | 'high'
  - `metadata` object
  - `frequency_penalty` number
  - `max_completion_tokens` number
  - `n` 1
  - `modalities` string[]
  - `presence_penalty` number
  - `seed` number
  - `service_tier` 'auto' | 'default'
  - `stop` string[]
  - `stream` boolean
  - `stream_options` object
    - `include_usage` boolean
  - `temperature` number
  - `top_p` number
  - `tools` object[]
    - `type` 'function', required
    - `function` object, required
      - `description` string
      - `name` string, required
      - `parameters` object
      - `strict` boolean
  - `tool_choice` union
    - 'none' | 'auto' | 'required'
    - object
      - `type` 'function', required
      - `function` object, required
        - `name` string, required
  - `parallel_tool_calls` boolean

## Response `200`

Returns a unique ID for the asynchronous chat task, used to retrieve the generated result once processing is complete.

- object — Returns a unique ID for the asynchronous chat task, used to retrieve the generated result once processing is complete.
  - `id` string, required

## Other responses

- `400` — Default Response
- `404` — Default Response
- `500` — Default Response

---

[API](https://skmtc.net/distribute/apis/distribute-ai-api.md) · [All operations](https://skmtc.net/distribute/apis/distribute-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/distribute/distribute-ai-api/versions/c00f2aec7fca/schema)
