Install
openclaw skills install xiaoxia-dmxapi-image使用 MiniMax (image-01) 和其他模型生成图片。支持文生图、图片编辑。当用户需要生成图片、AI绘图时使用此技能。使用方法:用户需要配置 MINIMAX_API_KEY 环境变量。
openclaw skills install xiaoxia-dmxapi-image用户需要:
const https = require('https');
const apiKey = 'YOUR_MINIMAX_API_KEY';
const body = JSON.stringify({
model: 'image-01',
prompt: '描述内容',
aspect_ratio: '1:1',
response_format: 'base64'
});
const options = {
hostname: 'api.minimaxi.com',
path: '/v1/image_generation',
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${apiKey}`
}
};
生成小龙虾头像: