en un clic
replicate-api-check
// Replicate モデルの API パラメータを調査する。新しいモデルの追加、パラメータ確認、モデル間の機能比較時に使用。
// Replicate モデルの API パラメータを調査する。新しいモデルの追加、パラメータ確認、モデル間の機能比較時に使用。
Create high-quality MulmoScript through structured multi-phase creative process
Create a stroke order animation MulmoScript using KanjiVG SVG data. Use when the user wants to create stroke order learning content for hiragana, katakana, kanji, or Latin alphabet characters.
Create a vocabulary learning chat MulmoScript with messenger-style animated UI (voiceover approach). Use when the user wants to create vocabulary learning content.
Create a vocabulary learning lesson MulmoScript with multi-section structure (word display, examples with voice_over, explanation, review with translation). Use when the user wants to create vocabulary learning content with a lesson/presentation-style format rather than chat-style.
Create a conversation practice chat MulmoScript with speech bubble UI and character illustration (voiceover approach). Use when the user wants to create English conversation practice content.
ElevenLabs の新モデル追加時に使用。provider2agent.ts のモデルリスト更新とテストスクリプト更新を行う。
| name | replicate-api-check |
| description | Replicate モデルの API パラメータを調査する。新しいモデルの追加、パラメータ確認、モデル間の機能比較時に使用。 |
| user-invocable | false |
Replicate モデルの入力パラメータスキーマを API から直接取得する方法。
.env に REPLICATE_API_TOKEN が設定されていることsource .env が必要python3 が利用可能であること(JSON 整形に使用)source .env; : "${REPLICATE_API_TOKEN:?REPLICATE_API_TOKEN is not set}"; curl -s -H "Authorization: Bearer $REPLICATE_API_TOKEN" \
"https://api.replicate.com/v1/models/{owner}/{model}" | python3 -c "
import sys,json
data=json.load(sys.stdin)
v=data.get('latest_version',{})
schema=v.get('openapi_schema',{}).get('components',{}).get('schemas',{}).get('Input',{})
required = schema.get('required', [])
props = schema.get('properties',{})
print('Required:', required)
print()
for k,v2 in sorted(props.items()):
print(f'{k}: {json.dumps(v2, indent=2)}')
"
source .env; : "${REPLICATE_API_TOKEN:?REPLICATE_API_TOKEN is not set}"; for model in \
"kwaivgi/kling-v3-video" \
"google/veo-3.1" \
"bytedance/seedance-2.0"; do
echo "=== $model ==="
curl -s -H "Authorization: Bearer $REPLICATE_API_TOKEN" \
"https://api.replicate.com/v1/models/$model" | python3 -c "
import sys,json
data=json.load(sys.stdin)
v=data.get('latest_version',{})
schema=v.get('openapi_schema',{}).get('components',{}).get('schemas',{}).get('Input',{}).get('properties',{})
# キーワードでフィルタ(例: audio 関連)
matches = {k:v2 for k,v2 in schema.items() if 'audio' in k.lower()}
if matches:
for k,v2 in matches.items():
print(f' {k}: type={v2.get(\"type\",\"?\")}, default={v2.get(\"default\",\"?\")}, desc={v2.get(\"description\",\"?\")}')
else:
print(' (no match)')
"
done
provider2agent.ts のモデルリストから全モデルを取得してループすると漏れがない'prompt', 'image', 'duration')latest_version.openapi_schema にスキーマ全体が含まれるnullable: true のパラメータはオプショナル