Skip to content

Commit

Permalink
prodia.ts: switch to new api entrypoints (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbenten committed Sep 5, 2023
1 parent 8708a4b commit 0cafc44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prodia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const createProdia = ({ apiKey, base: _base }: CreateProdiaOptions) => {
};

const generate = async (params: ProdiaGenerateRequest) => {
const response = await fetch(`${base}/job`, {
const response = await fetch(`${base}/sd/generate`, {
method: "POST",
headers: {
...headers,
Expand All @@ -95,7 +95,7 @@ export const createProdia = ({ apiKey, base: _base }: CreateProdiaOptions) => {
};

const transform = async (params: ProdiaTransformRequest) => {
const response = await fetch(`${base}/transform`, {
const response = await fetch(`${base}/sd/transform`, {
method: "POST",
headers: {
...headers,
Expand All @@ -112,7 +112,7 @@ export const createProdia = ({ apiKey, base: _base }: CreateProdiaOptions) => {
};

const controlnet = async (params: ProdiaControlnetRequest) => {
const response = await fetch(`${base}/controlnet`, {
const response = await fetch(`${base}/sd/controlnet`, {
method: "POST",
headers: {
...headers,
Expand Down

0 comments on commit 0cafc44

Please sign in to comment.