---
title: "Completions Create"
method: POST
path: "/completions/create"
tags: ["Completions"]
---

# Completions Create

`POST /completions/create`

## Request body

- CompletionsCreateReq
  - `project_id` string, required
  - `inputs` CompletionsCreateRequestInputs, required
    - `model` string, required
    - `messages` unknown[]
      - unknown
    - `timeout` union
      - number
      - string
    - `temperature` number, nullable
    - `top_p` number, nullable
    - `n` integer, nullable
    - `stop` union
      - string
      - unknown[]
        - unknown
    - `max_completion_tokens` integer, nullable
    - `max_tokens` integer, nullable
    - `modalities` unknown[], nullable
      - unknown
    - `presence_penalty` number, nullable
    - `frequency_penalty` number, nullable
    - `stream` boolean, nullable
    - `logit_bias` object, nullable
    - `user` string, nullable
    - `response_format` union
      - object
      - unknown
    - `seed` integer, nullable
    - `tools` unknown[], nullable
      - unknown
    - `tool_choice` union
      - string
      - object
    - `logprobs` boolean, nullable
    - `top_logprobs` integer, nullable
    - `parallel_tool_calls` boolean, nullable
    - `extra_headers` object, nullable
    - `functions` unknown[], nullable
      - unknown
    - `function_call` string, nullable
    - `api_version` string, nullable
  - `wb_user_id` string, nullable — Do not set directly. Server will automatically populate this field.
  - `track_llm_call` boolean, nullable — Whether to track this LLM call in the trace server

## Response `200`

Successful Response

- CompletionsCreateRes
  - `response` object, required
  - `weave_call_id` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/wandb/apis/fastapi.md) · [All operations](https://skmtc.dev/wandb/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wandb/fastapi/revisions/148dfd663d45/schema)
