全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
查看: 649|回复: 6
打印 上一主题 下一主题

x.ai有图像生成api了,之前白**的额度能用

[复制链接]
跳转到指定楼层
1#
发表于 2025-3-21 20:34:36 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
效果:


文档:
https://docs.x.ai/docs/guides/image-generations
2#
发表于 2025-3-21 20:38:46 来自手机 | 只看该作者
oneapi还没支持,有没哪位知道有同类软件能支持的?
3#
发表于 2025-3-21 20:39:26 | 只看该作者
mjj头发没这么多
4#
 楼主| 发表于 2025-3-21 20:41:37 | 只看该作者
ceplavia 发表于 2025-3-21 20:38
oneapi还没支持,有没哪位知道有同类软件能支持的?

用openwebui,可以自己写pipe实现,我是写的pipe实现的
5#
发表于 2025-3-21 21:00:18 来自手机 | 只看该作者
ClearkSky 发表于 2025-3-21 20:41
用openwebui,可以自己写pipe实现,我是写的pipe实现的

等有空看看,现在偷懒同时用groq和grok是用oneapi捏一起再配合nextchat
6#
发表于 2025-3-21 21:35:28 | 只看该作者
为啥我连接是这种:
连接失败404"Themodelgrok-2-image-1212doesnote 3d5b545dc9c4 does not have access to it. Please ensure you're
using the correct APl key. If you believe this is a mistake, pplease contact support and quote your teamID and the model name.
7#
 楼主| 发表于 2025-3-21 23:13:33 | 只看该作者
king 发表于 2025-3-21 21:35
为啥我连接是这种:
连接失败404"Themodelgrok-2-image-1212doesnote 3d5b545dc9c4 does not have access t ...

你应该用的client.chat.completions.create

需要用client.images.generate
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-10-31 23:13 , Processed in 0.059129 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表