Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LABNANA_API_KEYYesLabnana API key.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_subscriptionA

获取当前 API Key 账户的订阅状态、可用积分(月度/永久/限时)、免费额度(freeUsages)与重置时间。对应 GET /openapi/v1/user/subscription。

estimate_creditsA

根据 provider、模型、尺寸、宽高比等参数预估生成图片所需的积分。同步返回,不实际生成图片、不扣除积分。对应 POST /openapi/v1/images/generation/estimate-credits。

generate_imageA

同步生成图片,直接返回 base64 图片数据与生成元数据。支持 Gemini 系列、GPT-Image-2、Wan2.7、Seedream 5.0 Pro。可传参考图片(fileUri 或 base64 inlineData)做图生图、改图。对应 POST /openapi/v1/images/generation。注意:同步接口返回体积大,4K 图片建议改用 generate_image_async。

generate_image_asyncA

创建图片生成任务并立即返回 taskId,不阻塞等待。任务成功后图片为公开链接,可用 get_generation_task 查询详情,或用 wait_for_generation_task 等待完成。适合大图、批量生成。对应 POST /openapi/v1/images/generation/async。

list_generation_tasksA

按创建时间倒序返回当前 API Key 用户的图片生成任务列表。对应 GET /openapi/v1/images/generation/tasks。

get_generation_taskA

查询图片生成任务状态。任务成功后 images 字段为公开图片链接数组,可直接下载。对应 GET /openapi/v1/images/generation/tasks/{taskId}。

wait_for_generation_taskA

轮询等待异步生成任务完成(success / fail),返回公开图片链接或失败原因。适合在 generate_image_async 之后直接调用,避免手动多次轮询。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/exoticknight/labnana-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server