---
title: "Create AI Proxy Chat Completion"
method: POST
path: "/users/{userId}/ai/providers/{aiProviderId}/chat/completions"
tags: ["AI"]
deprecated: true
---

# Create AI Proxy Chat Completion

`POST /users/{userId}/ai/providers/{aiProviderId}/chat/completions`

## Request

- Base URL: `https://api.crowdin.com/api/v2`
- URL: `https://api.crowdin.com/api/v2/users/{userId}/ai/providers/{aiProviderId}/chat/completions`
- Auth: none declared
- TypeScript: <https://skmtc.dev/crowdin/apis/crowdin-api-v2/docs/users/:userId/ai/providers/:aiProviderId/chat/completions/post.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

**Required scopes:** `ai.proxy` (Read only).

Deprecated. Use [AI Gateway](#operation/api.ai.providers.gateway.crowdin.post) instead.

This API method serves as an intermediary, forwarding your requests directly to the selected provider.

Please refer to the documentation for the specific provider you use to determine the required payload format.

__Note:__ The AI Gateway supports every provider type, all HTTP methods, and native SSE streaming. This endpoint is kept for compatibility and does not receive new capabilities

## Path parameters

- `userId` integer, required
- `aiProviderId` integer, required

## Request body

- union
  - object
    - `model` string, required: ID of the model to use.
    - `stream` boolean: Tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a data: `[DONE]` message.
  - object
    - `stream` boolean: Tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a data: `[DONE]` message.

## Response `200`

AI Proxy Chat Completion data

- AiProxyChatCompletionResource: Base schema of resource container. Container is a wrapper object that contains payload in required `data` property and provides space for adding any other metadata.
  - `data` unknown, required

## Other responses

- `400`: Invalid Request Parameters
- `401`: Unauthorized
- `403`: Forbidden
- `404`: AI provider with specified user id and id was not found
- `405`: Method Not Allowed

## Changes

- **2026-11-09** `d14928443442`: 1 breaking, 1 info
  - removed the success response with the status `201`
  - added the success response with the status `200`
- **2026-11-06** `27aae7751699`: 1 breaking, 1 info
  - the request's body type changed from no type to `object`
  - endpoint deprecated

[Operation history](https://skmtc.dev/crowdin/apis/crowdin-api-v2/changes/users/:userId/ai/providers/:aiProviderId/chat/completions/post.md)

---

[API](https://skmtc.dev/crowdin/apis/crowdin-api-v2.md) - [All operations](https://skmtc.dev/crowdin/apis/crowdin-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/crowdin/apis/crowdin-api-v2/revisions/a7b45ec0dd97?raw)
