Images
Calling it
This is your own data, so a call has to say who you are. Make a token at /token and send it as a header.
curl -H "Authorization: Bearer $MU_TOKEN" \ https://micro.mu/api/v1/images/daily
Methods
GET /api/v1/images/dailyRetrieve the current daily image or a date
| Argument | Type | Description |
|---|---|---|
date | string | YYYY-MM-DD; omitted for the current daily image |
curl \ -H "Authorization: Bearer $MU_TOKEN" \ "https://micro.mu/api/v1/images/daily"
POST /api/v1/images/deleteDelete an image you own
| Argument | Type | Description |
|---|---|---|
id * | string |
curl -X POST \
-H "Authorization: Bearer $MU_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id":"id"}' \
https://micro.mu/api/v1/images/delete19 credits
POST /api/v1/images/generateGenerate an image from a text prompt and return its URL
| Argument | Type | Description |
|---|---|---|
prompt * | string | What the image should depict |
curl -X POST \
-H "Authorization: Bearer $MU_TOKEN" \
-H "Content-Type: application/json" \
-d '{"prompt":"prompt"}' \
https://micro.mu/api/v1/images/generateGET /api/v1/images/getRetrieve accessible image metadata and URL
| Argument | Type | Description |
|---|---|---|
id * | string |
curl \ -H "Authorization: Bearer $MU_TOKEN" \ "https://micro.mu/api/v1/images/get?id=id"
GET /api/v1/images/listList stored images or the daily archive with pagination
| Argument | Type | Description |
|---|---|---|
scope | string | mine, public, all (own plus public), or daily; defaults to public |
limit | number | Page size, default 20, maximum 100 |
cursor | string | Next cursor from the previous page; keep query and scope unchanged |
curl \ -H "Authorization: Bearer $MU_TOKEN" \ "https://micro.mu/api/v1/images/list"
POST /api/v1/images/searchSearch accessible stored images by title, description, prompt and tags; public by default
| Argument | Type | Description |
|---|---|---|
scope | string | public, mine, all, or daily; defaults to public |
cursor | string | |
query * | string | What the image should show, in words |
limit | number | Max results (default 20) |
curl -X POST \
-H "Authorization: Bearer $MU_TOKEN" \
-H "Content-Type: application/json" \
-d '{"query":"query"}' \
https://micro.mu/api/v1/images/searchPOST /api/v1/images/updateEdit metadata on an image you own
| Argument | Type | Description |
|---|---|---|
id * | string | |
title | string | |
description | string | |
tags | array |
curl -X POST \
-H "Authorization: Bearer $MU_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id":"id"}' \
https://micro.mu/api/v1/images/updatePOST /api/v1/images/uploadUpload a private raster image
| Argument | Type | Description |
|---|---|---|
data * | string | Base64 PNG, JPEG or GIF; at most 512 KB decoded and 8 megapixels; browser uploads support 8 MB |
description | string | Image caption, at most 1000 characters |
curl -X POST \
-H "Authorization: Bearer $MU_TOKEN" \
-H "Content-Type: application/json" \
-d '{"data":"data"}' \
https://micro.mu/api/v1/images/uploadThe same methods are tools over MCP, and every service on this instance is in one reference.
