POST
/
codenull
/
ai
/
api
/
v1
/
chat-completion
{
  "id": "<string>",
  "project_id": "<string>",
  "messages": [
    {}
  ],
  "created_at": "<string>",
  "updated_at": "<string>",
  "ready_for_generation": false
}

Example Usage

For complete API documentation and examples, please refer to your Swagger UI.

curl -X 'POST' \
  'https://localhost:8080/codenull/ai/api/v1/chat-completion' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "project_id": "123e4567-e89b-12d3-a456-426614174000",
  "user_prompt": {
    "role": "user",
    "content": "I need a portfolio website for a photographer"
  }
}'

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.