Documentation ¶
Index ¶
Constants ¶
View Source
const ( UserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" Timeout = 5 * time.Second PageUrl = "https://www.bing.com/images/create" ResultUrl = "https://www.bing.com/images/create/async/results/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BingDalle3 ¶
type BingDalle3 struct {
// contains filtered or unexported fields
}
func NewBingDalle3 ¶
func NewBingDalle3(cookie string) *BingDalle3
func NewBingDalle3WithProxy ¶
func NewBingDalle3WithProxy(cookie, proxyUrl string) *BingDalle3
func (*BingDalle3) CreateImage ¶
func (bing *BingDalle3) CreateImage(prompt string) (string, error)
func (*BingDalle3) DownloadImage ¶
func (bing *BingDalle3) DownloadImage(imageUrl string) (*[]byte, error)
func (*BingDalle3) GetTokenBalance ¶
func (bing *BingDalle3) GetTokenBalance() (int, error)
func (*BingDalle3) QueryResult ¶
func (bing *BingDalle3) QueryResult(id string, prompt string) ([]string, error)
Click to show internal directories.
Click to hide internal directories.