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: mistral (default), gpt. |
{
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: mistral-large, mistral-medium (default), gpt4.0, gpt4.1, gpt5. |
{
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-plus
Image editing using advanced AI models.
| Name | Type | Required | Description |
|---|---|---|---|
| base64 | string | ❌ | Return image as base64 |
| Name | Type | Nullable | Required | Description |
|---|---|---|---|---|
| model | string | ❌ | ✔️ | Type of action. Available options: icymat-ai-croper (default), stability-background-remove |
| image | string | ❌ | ❌ | PNG image encoded to base64 |
{
error: "Description 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 |
| model | string | ❌ | ❌ | Force using model. Available options: gpt-image-1 (default), stability-3.5-medium (testing), stability-3.5-large-turbo (testing), stability-3.5-large (testing). |
{
error: "Description cannot be empty",
}