正在加载视频...
视频加载失败
we're releasing an experimental typescript sdk! npm install xAI-official/sdk get text, voice, image and video in one sdk, with the latest grok models and tools that run on our servers, like real-time X search, web search, code execution and remote mcp
41 条评论

it's early and we'd love to get your feedback as we keep iterating on it! github: npm:

@SpaceXAI @xai So good! Excited to get my bots building with this

@SpaceXAI @xai yes! gotta let me know what @bot thinks of it

@SpaceXAI @xai is the code execution sandboxed per request or shared

@SpaceXAI @xai per request. each code execution runs in its own isolated python sandbox with no network or filesystem access, and nothing persists between requests. details here:

@SpaceXAI @xai gotcha thanks!

@SpaceXAI @xai awesome!

@SpaceXAI @xai FUCK YEAHHH! Love you guys

@SpaceXAI @xai @Jaaneek I see you got no response from npm :)

@SpaceXAI @xai Perfect for my and my daughters weekend project

@SpaceXAI @xai It looks like a really cool All-In-One solution for creating release trailers. Sad to say im in X API debt so I wont test it haha

@SpaceXAI @xai good news! this runs on the spacexai api, not the x api. totally separate credits at so your x api balance is untouched.

@SpaceXAI @xai oh hell yeah. then i might just have to try it

@SpaceXAI @xai where's the @EffectTS_ ?

@SpaceXAI @xai let's go boss 🤝

@SpaceXAI @xai 🔥

@SpaceXAI @xai Yo let’s go!!!

@SpaceXAI @xai SMS/MMS texting, inbound/outbound voice calling?

@SpaceXAI @xai 👀

@SpaceXAI @xai Physical (virtual) mailing address next please like @useStable maybe just buy them 🤷♂️

@SpaceXAI @xai Is this grok chat imagine and build cli terminal all in one?!

@SpaceXAI @xai Wowa!

@SpaceXAI @xai Soo good honestly

@SpaceXAI @xai SpaceXAI offers text and voice in one SDK for Grok models which run on their servers that is very efficient indeed!

@SpaceXAI @xai server-side tools in the sdk itself is the move, half of my code is glue for exactly that

@SpaceXAI @xai @grok can we use grok heavy oauth with it? Or just api

@SpaceXAI @xai 🚀

@SpaceXAI @xai yoo, super interesting to try! thanks team

@SpaceXAI @xai Do it for @bot pls

@SpaceXAI @xai That’s a very nice sdk. Might try this with deno. Other implementations e.g. python or go planned?

@SpaceXAI @xai Built with grok 4.7?

@SpaceXAI @xai one sdk for text, voice, image and video is the right shape. most of the pain in multimodal apps is the glue between vendors

@SpaceXAI @xai text voice image video in one sdk, the bundling era is here

@SpaceXAI @xai any plans to consolidate x and xai API credits?

@SpaceXAI @xai Great stuff! One SDK for all modalities is huge. @Nainahf has been solid on how this reshapes the AI stock race.

@SpaceXAI @xai @grok how can it it be helpful for me?

@SpaceXAI @xai Do we have to be on the API plan? Or credit usage or something else?

@SpaceXAI @xai Nice, what's the networking like?

@SpaceXAI @xai This will be cool for you @AlemTuzlak

@SpaceXAI @xai @grok explain without technical jargon

@SpaceXAI @xai one sdk for text, voice, image and video is useful if the auth and error handling are consistent across all four. thats usually where the abstraction breaks
