constants.go 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. package stepfun
  2. import (
  3. "github.com/labring/aiproxy/core/model"
  4. "github.com/labring/aiproxy/core/relay/mode"
  5. )
  6. var ModelList = []model.ModelConfig{
  7. {
  8. Model: "step-1-8k",
  9. Type: mode.ChatCompletions,
  10. Owner: model.ModelOwnerStepFun,
  11. Price: model.Price{
  12. InputPrice: 0.005,
  13. OutputPrice: 0.02,
  14. },
  15. RPM: 60,
  16. Config: model.NewModelConfig(
  17. model.WithModelConfigMaxContextTokens(8000),
  18. model.WithModelConfigToolChoice(true),
  19. ),
  20. },
  21. {
  22. Model: "step-1-32k",
  23. Type: mode.ChatCompletions,
  24. Owner: model.ModelOwnerStepFun,
  25. Price: model.Price{
  26. InputPrice: 0.015,
  27. OutputPrice: 0.07,
  28. },
  29. RPM: 60,
  30. Config: model.NewModelConfig(
  31. model.WithModelConfigMaxContextTokens(32000),
  32. model.WithModelConfigToolChoice(true),
  33. ),
  34. },
  35. {
  36. Model: "step-1-128k",
  37. Type: mode.ChatCompletions,
  38. Owner: model.ModelOwnerStepFun,
  39. Price: model.Price{
  40. InputPrice: 0.04,
  41. OutputPrice: 0.2,
  42. },
  43. RPM: 60,
  44. Config: model.NewModelConfig(
  45. model.WithModelConfigMaxContextTokens(128000),
  46. model.WithModelConfigToolChoice(true),
  47. ),
  48. },
  49. {
  50. Model: "step-1-256k",
  51. Type: mode.ChatCompletions,
  52. Owner: model.ModelOwnerStepFun,
  53. Price: model.Price{
  54. InputPrice: 0.95,
  55. OutputPrice: 0.3,
  56. },
  57. RPM: 60,
  58. Config: model.NewModelConfig(
  59. model.WithModelConfigMaxContextTokens(256000),
  60. model.WithModelConfigToolChoice(true),
  61. ),
  62. },
  63. {
  64. Model: "step-1-flash",
  65. Type: mode.ChatCompletions,
  66. Owner: model.ModelOwnerStepFun,
  67. Price: model.Price{
  68. InputPrice: 0.001,
  69. OutputPrice: 0.004,
  70. },
  71. RPM: 60,
  72. Config: model.NewModelConfig(
  73. model.WithModelConfigMaxContextTokens(8000),
  74. model.WithModelConfigToolChoice(true),
  75. ),
  76. },
  77. {
  78. Model: "step-2-16k",
  79. Type: mode.ChatCompletions,
  80. Owner: model.ModelOwnerStepFun,
  81. Price: model.Price{
  82. InputPrice: 0.038,
  83. OutputPrice: 0.12,
  84. },
  85. RPM: 60,
  86. Config: model.NewModelConfig(
  87. model.WithModelConfigMaxContextTokens(16000),
  88. model.WithModelConfigToolChoice(true),
  89. ),
  90. },
  91. {
  92. Model: "step-1v-8k",
  93. Type: mode.ChatCompletions,
  94. Owner: model.ModelOwnerStepFun,
  95. Price: model.Price{
  96. InputPrice: 0.005,
  97. OutputPrice: 0.02,
  98. },
  99. RPM: 60,
  100. Config: model.NewModelConfig(
  101. model.WithModelConfigMaxContextTokens(8000),
  102. model.WithModelConfigToolChoice(true),
  103. model.WithModelConfigVision(true),
  104. ),
  105. },
  106. {
  107. Model: "step-1v-32k",
  108. Type: mode.ChatCompletions,
  109. Owner: model.ModelOwnerStepFun,
  110. Price: model.Price{
  111. InputPrice: 0.015,
  112. OutputPrice: 0.07,
  113. },
  114. RPM: 60,
  115. Config: model.NewModelConfig(
  116. model.WithModelConfigMaxContextTokens(32000),
  117. model.WithModelConfigToolChoice(true),
  118. model.WithModelConfigVision(true),
  119. ),
  120. },
  121. {
  122. Model: "step-1.5v-mini",
  123. Type: mode.ChatCompletions,
  124. Owner: model.ModelOwnerStepFun,
  125. Price: model.Price{
  126. InputPrice: 0.008,
  127. OutputPrice: 0.035,
  128. },
  129. RPM: 60,
  130. Config: model.NewModelConfig(
  131. model.WithModelConfigMaxContextTokens(32000),
  132. model.WithModelConfigToolChoice(true),
  133. model.WithModelConfigVision(true),
  134. ),
  135. },
  136. {
  137. Model: "step-tts-mini",
  138. Type: mode.AudioSpeech,
  139. Owner: model.ModelOwnerStepFun,
  140. Price: model.Price{
  141. InputPrice: 0.09,
  142. },
  143. RPM: 60,
  144. Config: model.NewModelConfig(
  145. model.WithModelConfigMaxInputTokens(1000),
  146. model.WithModelConfigSupportFormats([]string{"opus", "wav", "flac", "mp3"}),
  147. model.WithModelConfigSupportVoices([]string{
  148. "cixingnansheng", "zhengpaiqingnian", "yuanqinansheng",
  149. "qingniandaxuesheng", "boyinnansheng", "ruyananshi",
  150. "shenchennanyin", "qinqienvsheng", "wenrounvsheng",
  151. "jilingshaonv", "yuanqishaonv", "ruanmengnvsheng",
  152. "youyanvsheng", "lengyanyujie", "shuangkuaijiejie",
  153. "wenjingxuejie", "linjiajiejie", "linjiameimei",
  154. "zhixingjiejie",
  155. }),
  156. ),
  157. },
  158. {
  159. Model: "step-asr",
  160. Type: mode.AudioTranscription,
  161. Owner: model.ModelOwnerStepFun,
  162. Price: model.Price{
  163. InputPrice: 0.09,
  164. },
  165. RPM: 60,
  166. },
  167. {
  168. Model: "step-1x-medium",
  169. Type: mode.ImagesGenerations,
  170. Owner: model.ModelOwnerStepFun,
  171. RPM: 60,
  172. ImagePrices: map[string]float64{
  173. "256x256": 0.1,
  174. "512x512": 0.1,
  175. "768x768": 0.1,
  176. "1024x1024": 0.1,
  177. "1280x800": 0.1,
  178. "800x1280": 0.1,
  179. },
  180. },
  181. }