import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
x_ai: {
type: "app",
app: "x_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.x.ai/v1/models`,
headers: {
Authorization: `Bearer ${this.x_ai.$auth.api_key}`,
}
})
},
})
Create an embedding vector representation corresponding to the input text. See the documentation
Create a language model response for a chat conversation. See the documentation
Create a language model response for a given prompt. See the documentation
xAI uses API keys for authentication. When you connect your xAI account, Pipedream securely stores the keys so you can easily authenticate to xAI APIs in both code and no-code steps.