← 返回
未分类 Key 中文

OATDA List Models

List available AI models from OATDA's 10+ providers with optional filtering by type (chat, image, video) or provider name. Triggers when the user wants to se...
从 OATDA 的十余家提供商列出可用 AI 模型,支持按类型(聊天、图像、视频)或提供商名称筛选。当用户想查看模型时触发。
devcsde
未分类 clawhub v1.0.4 1 版本 100000 Key: 需要
★ 0
Stars
📥 362
下载
💾 0
安装
1
版本
#latest

概述

OATDA List Models

List all available AI models from OATDA's providers with optional filtering.

API Key Resolution

All commands need the OATDA API key. Resolve it inline for each exec call:

export OATDA_API_KEY="${OATDA_API_KEY:-$(cat ~/.oatda/credentials.json 2>/dev/null | jq -r '.profiles[.defaultProfile].apiKey' 2>/dev/null)}"

If the key is empty or null, tell the user to get one at https://oatda.com and configure it.

Security: Never print the full API key. Only verify existence or show first 8 chars.

API Calls

All requests are GET. Add query parameters to filter.

List all models

export OATDA_API_KEY="${OATDA_API_KEY:-$(cat ~/.oatda/credentials.json 2>/dev/null | jq -r '.profiles[.defaultProfile].apiKey' 2>/dev/null)}" && \
curl -s -X GET "https://oatda.com/api/v1/llm/models" \
  -H "Authorization: Bearer $OATDA_API_KEY"

Filter by type

  • ?type=chat — Text/chat models
  • ?type=image — Image generation models
  • ?type=video — Video generation models

Filter by provider

  • ?provider=openai
  • ?provider=anthropic
  • ?provider=google
  • ?provider=bytedance
  • ?provider=deepseek
  • etc.

Combine filters

curl -s -X GET "https://oatda.com/api/v1/llm/models?type=image&provider=openai" \
  -H "Authorization: Bearer $OATDA_API_KEY"

Discover model-specific parameters

Image and video models include supported_params describing model-specific options:

# Image model params
curl -s -X GET "https://oatda.com/api/v1/llm/models?type=image" \
  -H "Authorization: Bearer $OATDA_API_KEY" | jq '.image_models[] | {id, supported_params}'

# Video model params
curl -s -X GET "https://oatda.com/api/v1/llm/models?type=video" \
  -H "Authorization: Bearer $OATDA_API_KEY" | jq '.video_models[] | {id, supported_params}'

# Specific provider's video params
curl -s -X GET "https://oatda.com/api/v1/llm/models?type=video&provider=bytedance" \
  -H "Authorization: Bearer $OATDA_API_KEY" | jq '.video_models[] | select(.model | contains("seedance")) | .supported_params'

Response Format

{
  "total": 42,
  "filter": {"type": "all", "provider": null},
  "chatModels": [
    {"id": "provider/model-name", "provider": "...", "model": "...", "displayName": "..."}
  ],
  "imageModels": [
    {
      "id": "provider/model-name",
      "provider": "...",
      "model": "...",
      "displayName": "...",
      "supported_params": {
        "style": {"type": "string", "values": ["vivid", "natural"], "default": "vivid"}
      }
    }
  ],
  "videoModels": [
    {
      "id": "provider/model-name",
      "provider": "...",
      "model": "...",
      "displayName": "...",
      "supported_params": {
        "ratio": {"type": "string", "values": ["16:9", "9:16", "1:1"], "default": "16:9"},
        "duration": {"type": "string", "values": ["5", "10"], "default": "5"},
        "generate_audio": {"type": "boolean", "default": false, "optional": true},
        "first_frame_image": {"type": "file", "accept": "image/*", "optional": true}
      }
    }
  ]
}

Understanding supported_params

Each parameter has:

  • type: string, number, boolean, or file
  • values: Allowed values for enums
  • default: Default value
  • description: What it does
  • optional: Whether required
  • accept: For file types — accepted MIME types (e.g., "image/*")
  • min / max: Range constraints for numbers

File-type params (e.g., mask, first_frame_image, last_frame_image) require public HTTPS URLs, not local paths.

Presenting Results

Format models by category. Use the actual data returned by the API — do not hardcode model names.

Chat Models (N total):

  • provider/model-name — Display Name

Image Models (N total):

  • provider/model-name — Display Name

Video Models (N total):

  • provider/model-name — Display Name

Error Handling

HTTP StatusMeaningAction
------------------------------
401Invalid API keyTell user to check their key
429Rate limitedWait and retry

Notes

  • This is a GET request — no request body
  • The id field (e.g., openai/gpt-4o) is the model identifier used in other OATDA skills
  • Use supported_params to discover model-specific parameters before generating
  • For file-type params, provide publicly accessible URLs
  • Related skills: oatda-text-completion, oatda-generate-image, oatda-generate-video, oatda-vision-analysis

版本历史

共 1 个版本

  • v1.0.4 当前
    2026-05-07 06:18 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

OATDA Vision Analysis

devcsde
通过OATDA的统一API使用视觉AI模型分析图像。当用户想要分析、描述或理解图像时触发;提取...
★ 0 📥 414

OATDA Text Completion

devcsde
使用 OATDA 统一 LLM API 生成文本;在用户希望使用特定 LLM 提供商(如 OpenAI、Anthrop...)生成、撰写或补全文本时触发。
★ 0 📥 387

OATDA Generate Video

devcsde
通过 OATDA 统一 API,使用 AI 模型将文字描述生成视频。用户想生成、创建或制作 AI 视频时触发。
★ 0 📥 375