POST /api/ai/sild
Gets query and answer for it or create an image based on query.
| Name | Type | Nullable | Required | Description |
|---|---|---|---|---|
| query | string | ❌ | ✔️ | Text query to IcyMat AI |
| context | string | ✔️ | ❌ | Additional context to parse with query. |
| provider | string | ❌ | ❌ | Model for text processioning. Available: gpt (default), mistral. |
{
type: "text",
content: "Hi! I am IcyMat AI Chat API!",
}
{
type: "image",
content: "_IMAGE_ENCODED_TO_BASE64_",
}
{
error: "Query cannot be empty",
}
POST /api/ai/chat
Gets query and answer for it.
| Name | Type | Nullable | Required | Description |
|---|---|---|---|---|
| query | string | ❌ | ✔️ | Query to Chat AI |
| context | string | ✔️ | ❌ | Additional context to parse with query. |
| model | string | ❌ | ❌ | Force using model. Available options: gpt4.0, gpt4.1, gpt5 (default), mistral-medium (testing). |
{
answer: "Hi! I am IcyMat AI Chat API!",
}
{
error: "Query cannot be empty",
}
POST /api/ai/object-recognition
Recognize objects on photos.
| Name | Type | Nullable | Required | Description |
|---|---|---|---|---|
| image | string | ❌ | ❌ | PNG image encoded in base64 |
| description | string | ❌ | ✔️ | Description what should property be recognized. |
| lang | string | ❌ | ✔️ | Response language (available: pl, en). |
{
recognized_object: "Carrot",
}
{
recognized_object: "UNDEFINED",
}
{
error: "Image, description and lang cannot be empty",
}
POST /api/ai/image
Render image based on description or edit provided base64 image based on description
| Name | Type | Required | Description |
|---|---|---|---|
| base64 | string | ❌ | Return image as base64 |
| Name | Type | Nullable | Required | Description |
|---|---|---|---|---|
| description | string | ❌ | ✔️ | Description of image |
| image | string | ❌ | ❌ | PNG image encoded to base64 |
{
error: "Description cannot be empty",
}