AI_botter/node_modules/openai/resources/images.mjs

26 lines
902 B
JavaScript
Raw Normal View History

2024-05-01 02:46:10 +01:00
// File generated from our OpenAPI spec by Stainless.
import { APIResource } from 'openai/resource';
import { multipartFormRequestOptions } from 'openai/core';
export class Images extends APIResource {
/**
* Creates a variation of a given image.
*/
createVariation(body, options) {
return this._client.post('/images/variations', multipartFormRequestOptions({ body, ...options }));
}
/**
* Creates an edited or extended image given an original image and a prompt.
*/
edit(body, options) {
return this._client.post('/images/edits', multipartFormRequestOptions({ body, ...options }));
}
/**
* Creates an image given a prompt.
*/
generate(body, options) {
return this._client.post('/images/generations', { body, ...options });
}
}
(function (Images) {
})(Images || (Images = {}));
//# sourceMappingURL=images.mjs.map