---
title: "Search (GET)"
method: GET
path: "/api/search"
tags: ["Chat"]
---

# Search (GET)

`GET /api/search`

Simple GET endpoint for quick searches. Returns the same quality results as the POST endpoint.

Use `stream=true` for SSE streaming, or omit for a single JSON response.
Pass `session_id` for multi-turn context.

## Query parameters

- `query` string, required
- `stream` boolean
- `session_id` string
- `image` string, uri
- `key` string

## Response `200`

Search response

- ChatResponse
  - `id` string
  - `object` 'chat.completion'
  - `created` integer
  - `model` string
  - `choices` object[]
    - `index` integer
    - `message` object
      - `role` 'assistant'
      - `content` string
    - `finish_reason` 'stop'
  - `usage` object
    - `prompt_tokens` integer
    - `completion_tokens` integer
    - `total_tokens` integer

## Other responses

- `400` — Invalid request
- `401` — API key required
- `403` — Invalid API key

---

[API](https://skmtc.net/elixpo/apis/lixsearch-api.md) · [All operations](https://skmtc.net/elixpo/apis/lixsearch-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elixpo/lixsearch-api/revisions/1b4365f47b75/schema)
