with Vapi and OpenRouter?
Returns a list of models available through the API. See the documentation
Send a chat completion request to a selected model. See the documentation
Updates the configuration settings for a specific assistant. See the documentation
Send a completion request to a selected model (text-only format) See the documentation
The Vapi API delivers voice automation capabilities, letting you build powerful voice response systems. With Vapi, you can automate calls, send voice messages, and create dynamic interactions through speech recognition and text-to-speech. Pipedream's serverless platform allows you to integrate Vapi's API with numerous other services to automate workflows, react to events, and orchestrate complex voice-enabled processes.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
vapi: {
type: "app",
app: "vapi",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.vapi.ai/call`,
headers: {
Authorization: `Bearer ${this.vapi.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
openrouter: {
type: "app",
app: "openrouter",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://openrouter.ai/api/v1/parameters/openai/o1`,
headers: {
Authorization: `Bearer ${this.openrouter.$auth.api_key}`,
},
params: {
provider: `OpenAI`,
},
})
},
})