with DeepSeek and change.photos?
Creates a chat completion using the DeepSeek API. See the documentation
Transforms an image with various effects and optimizations. See the documentation
Lists the currently available models, and provides basic information about each one such as the owner and availability. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
deepseek: {
type: "app",
app: "deepseek",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.deepseek.$auth.base_url}/user/balance`,
headers: {
Authorization: `Bearer ${this.deepseek.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
change_photos: {
type: "app",
app: "change_photos",
}
},
async run({steps, $}) {
const data = {
"url": `https://pipedream.com/s.v0/app_13GhYE/logo/orig`,
"grayscale": true,
}
return await axios($, {
method: "post",
url: `https://www.change.photos/api/change`,
headers: {
Authorization: `Bearer ${this.change_photos.$auth.api_key}`,
"content-type": `application/json`,
"accept": `application/json`,
},
data,
})
},
})